/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Status != null) { hashCode = hashCode * 59 + Status.GetHashCode(); } if (Certificates != null) { hashCode = hashCode * 59 + Certificates.GetHashCode(); } if (IssuerDN != null) { hashCode = hashCode * 59 + IssuerDN.GetHashCode(); } if (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (SubjectDN != null) { hashCode = hashCode * 59 + SubjectDN.GetHashCode(); } if (ValidFrom != null) { hashCode = hashCode * 59 + ValidFrom.GetHashCode(); } if (ValidTo != null) { hashCode = hashCode * 59 + ValidTo.GetHashCode(); } return(hashCode); } }