protected bool Equals(Certificate other) { return(string.Equals(ThumbPrint, other.ThumbPrint) && string.Equals(Issuer, other.Issuer) && string.Equals(Subject, other.Subject) && ValidFrom.Equals(other.ValidFrom) && ValidTo.Equals(other.ValidTo) && string.Equals(KeyAlgoritm, other.KeyAlgoritm) && KeyLength == other.KeyLength && string.Equals(SerialNumber, other.SerialNumber) && string.Equals(Version, other.Version) && string.Equals(SubjectAlternativeName, other.SubjectAlternativeName) && string.Equals(CommonName, other.CommonName)); }
/// <summary> /// Returns true if Cert instances are equal /// </summary> /// <param name="other">Instance of Cert to be compared</param> /// <returns>Boolean</returns> public bool Equals(Cert other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( Certificates == other.Certificates || Certificates != null && Certificates.SequenceEqual(other.Certificates) ) && ( IssuerDN == other.IssuerDN || IssuerDN != null && IssuerDN.Equals(other.IssuerDN) ) && ( SerialNumber == other.SerialNumber || SerialNumber != null && SerialNumber.Equals(other.SerialNumber) ) && ( SubjectDN == other.SubjectDN || SubjectDN != null && SubjectDN.Equals(other.SubjectDN) ) && ( ValidFrom == other.ValidFrom || ValidFrom != null && ValidFrom.Equals(other.ValidFrom) ) && ( ValidTo == other.ValidTo || ValidTo != null && ValidTo.Equals(other.ValidTo) )); }
public virtual bool Equals(ConfigurationBuilt other, bool strict) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(strict ? Equals(Identifier, other.Identifier) && ValidFrom.Equals(other.ValidFrom) && ValidTo.Equals(other.ValidTo) : Equals(Identifier, other.Identifier)); }