System.Net.Security.SslSessionsCache.SslCredKey.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object y ) : bool
y Object
return bool
              public override bool Equals(Object y)
              {
                  SslCredKey she = (SslCredKey)y;

                  if (_CertThumbPrint.Length != she._CertThumbPrint.Length)
                      return false;

                  if (_HashCode != she._HashCode)
                      return false;

                  for (int i = 0; i < _CertThumbPrint.Length; ++i)
                      if (_CertThumbPrint[i] != she._CertThumbPrint[i])
                          return false;

                  return true;
              }
          }