/// <summary> /// Returns true if Agreement instances are equal /// </summary> /// <param name="other">Instance of Agreement to be compared</param> /// <returns>Boolean</returns> public bool Equals(Agreement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AgreementId == other.AgreementId || AgreementId != null && AgreementId.Equals(other.AgreementId) ) && ( Demand == other.Demand || Demand != null && Demand.Equals(other.Demand) ) && ( Offer == other.Offer || Offer != null && Offer.Equals(other.Offer) ) && ( ValidTo == other.ValidTo || ValidTo != null && ValidTo.Equals(other.ValidTo) ) && ( ApprovedDate == other.ApprovedDate || ApprovedDate != null && ApprovedDate.Equals(other.ApprovedDate) ) && ( State == other.State || State != null && State.Equals(other.State) ) && ( ProposedSignature == other.ProposedSignature || ProposedSignature != null && ProposedSignature.Equals(other.ProposedSignature) ) && ( ApprovedSignature == other.ApprovedSignature || ApprovedSignature != null && ApprovedSignature.Equals(other.ApprovedSignature) ) && ( CommittedSignature == other.CommittedSignature || CommittedSignature != null && CommittedSignature.Equals(other.CommittedSignature) )); }
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)); }