Targets .NET Core 3.0 (#39)
This commit is contained in:
parent
0993c03b70
commit
08bf44af9a
125 changed files with 1473 additions and 14244 deletions
|
|
@ -968,16 +968,12 @@ namespace Server
|
|||
|
||||
public static int GetAddressValue(IPAddress address)
|
||||
{
|
||||
#pragma warning disable 618
|
||||
return (int)address.Address;
|
||||
#pragma warning restore 618
|
||||
return BitConverter.ToInt32(address.GetAddressBytes(), 0);
|
||||
}
|
||||
|
||||
public static long GetLongAddressValue(IPAddress address)
|
||||
{
|
||||
#pragma warning disable 618
|
||||
return address.Address;
|
||||
#pragma warning restore 618
|
||||
return BitConverter.ToInt64(address.GetAddressBytes(), 0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue