Пример #1
0
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return(false);
            }

            if (ReferenceEquals(this, obj))
            {
                return(true);
            }

            ServerRecordEndPoint serverRecord = obj as ServerRecordEndPoint;

            return((serverRecord != null) && Equals(serverRecord));
        }
Пример #2
0
 private bool Equals(ServerRecordEndPoint other) => string.Equals(Host, other.Host) && (Port == other.Port) && (ProtocolTypes == other.ProtocolTypes);