public Int32 CompareTo(EndPoint other)
        {
            // If other is Empty, this instance is greater.
            if (other.Equals(Empty))
            {
                return(1);
            }

            var result = IPAddressComparer.Compare(Address, other.Address);

            return(result == 0 ? Port.CompareTo(other.Port) : result);
        }
Beispiel #2
0
 Int32 IComparer <String> .Compare(String left, String right)
 => IPAddressComparer.Compare(left, right);