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

            return(protocolConnectionSettings != null && this.Equals(protocolConnectionSettings));
        }