fCraft.IPAddressUtil.AsInt C# (CSharp) Method

AsInt() public static method

Represents an IPv4 address as a signed integer.
thisAddr is null.
public static AsInt ( [ thisAddr ) : int
thisAddr [
return int
        public static int AsInt( [NotNull] this IPAddress thisAddr ) {
            if( thisAddr == null ) throw new ArgumentNullException( "thisAddr" );
            return IPAddress.HostToNetworkOrder( BitConverter.ToInt32( thisAddr.GetAddressBytes(), 0 ) );
        }