public bool Equals(ProtocolConnectionSettings settings) { return(settings != null && (this.hostname.Equals(settings.hostname) && this.port == settings.port) && this.encryptionType == settings.encryptionType); }
public override bool Equals(object obj) { ProtocolConnectionSettings protocolConnectionSettings = obj as ProtocolConnectionSettings; return(protocolConnectionSettings != null && this.Equals(protocolConnectionSettings)); }