GE() public static method

public static GE ( byte A, byte B ) : bool
A byte
B byte
return bool
Ejemplo n.º 1
0
        public bool Contains(IPAddress ipaddress)
        {
            if (ipaddress.AddressFamily != this.Begin.AddressFamily)
            {
                return(false);
            }
            var adrBytes = ipaddress.GetAddressBytes();

            return(Bits.GE(this.Begin.GetAddressBytes(), adrBytes) && Bits.LE(this.End.GetAddressBytes(), adrBytes));
        }
Ejemplo n.º 2
0
        public bool Contains(IPAddressRange range)
        {
            if (this.Begin.AddressFamily != range.Begin.AddressFamily)
            {
                return(false);
            }

            return
                (Bits.GE(this.Begin.GetAddressBytes(), range.Begin.GetAddressBytes()) &&
                 Bits.LE(this.End.GetAddressBytes(), range.End.GetAddressBytes()));
        }