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)); }
private bool Equals(ServerRecordEndPoint other) => string.Equals(Host, other.Host) && (Port == other.Port) && (ProtocolTypes == other.ProtocolTypes);