/// <summary> /// Returns true if TruststoreItems instances are equal /// </summary> /// <param name="other">Instance of TruststoreItems to be compared</param> /// <returns>Boolean</returns> public bool Equals(TruststoreItems other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Alias == other.Alias || Alias != null && Alias.Equals(other.Alias) ) && ( EntryType == other.EntryType || EntryType != null && EntryType.Equals(other.EntryType) ) && ( Subject == other.Subject || Subject != null && Subject.Equals(other.Subject) ) && ( Issuer == other.Issuer || Issuer != null && Issuer.Equals(other.Issuer) ) && ( NotBefore == other.NotBefore || NotBefore != null && NotBefore.Equals(other.NotBefore) ) && ( NotAfter == other.NotAfter || NotAfter != null && NotAfter.Equals(other.NotAfter) ) && ( SerialNumber == other.SerialNumber || SerialNumber != null && SerialNumber.Equals(other.SerialNumber) )); }
/// <summary> /// Returns true if KeystoreChainItems instances are equal /// </summary> /// <param name="other">Instance of KeystoreChainItems to be compared</param> /// <returns>Boolean</returns> public bool Equals(KeystoreChainItems other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Subject == other.Subject || Subject != null && Subject.Equals(other.Subject) ) && ( Issuer == other.Issuer || Issuer != null && Issuer.Equals(other.Issuer) ) && ( NotBefore == other.NotBefore || NotBefore != null && NotBefore.Equals(other.NotBefore) ) && ( NotAfter == other.NotAfter || NotAfter != null && NotAfter.Equals(other.NotAfter) ) && ( SerialNumber == other.SerialNumber || SerialNumber != null && SerialNumber.Equals(other.SerialNumber) )); }
protected bool Equals(CertificateInfo other) { return(string.Equals(Subject, other.Subject) && string.Equals(IssuedBy, other.IssuedBy) && NotBefore.Equals(other.NotBefore) && NotAfter.Equals(other.NotAfter) && string.Equals(Thumbprint, other.Thumbprint)); }