public override bool Equals(object obj) { if (obj == this) { return(true); } X509V2AttributeCertificate x509V2AttributeCertificate = obj as X509V2AttributeCertificate; if (x509V2AttributeCertificate == null) { return(false); } return(cert.Equals(x509V2AttributeCertificate.cert)); }
public override bool Equals( object obj) { if (obj == this) return true; X509V2AttributeCertificate other = obj as X509V2AttributeCertificate; if (other == null) return false; return cert.Equals(other.cert); // NB: May prefer this implementation of Equals if more than one certificate implementation in play //return Arrays.AreEqual(this.GetEncoded(), other.GetEncoded()); }