예제 #1
0
        public override bool Equals(object obj)
        {
            if (false.Equals(base.Equals(obj)))
            {
                return(false);
            }

            InternetEndPoint iNetComparand = obj as InternetEndPoint;

            if (iNetComparand == null)
            {
                return(false);
            }

            return(ProtocolType == iNetComparand.ProtocolType &&
                   ProtocolFamily == iNetComparand.ProtocolFamily);
        }
예제 #2
0
        public override bool Equals(object comparand)
        {
            if (false.Equals(base.Equals(comparand)))
            {
                return(false);
            }

            InternetEndPoint iNetComparand = comparand as InternetEndPoint;

            if (iNetComparand == null)
            {
                return(false);
            }

            return(m_Family == iNetComparand.m_Family &&
                   m_Port == iNetComparand.m_Port);
        }