/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (DisplayName != null) { hashCode = hashCode * 59 + DisplayName.GetHashCode(); } if (Data != null) { hashCode = hashCode * 59 + Data.GetHashCode(); } if (Password != null) { hashCode = hashCode * 59 + Password.GetHashCode(); } if (TimestampServerURI != null) { hashCode = hashCode * 59 + TimestampServerURI.GetHashCode(); } if (TimestampServerUserName != null) { hashCode = hashCode * 59 + TimestampServerUserName.GetHashCode(); } if (TimestampServerUserPassword != null) { hashCode = hashCode * 59 + TimestampServerUserPassword.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if DocuViewareCertificate instances are equal /// </summary> /// <param name="input">Instance of DocuViewareCertificate to be compared</param> /// <returns>Boolean</returns> public bool Equals(DocuViewareCertificate input) { if (input == null) { return(false); } return (( DisplayName == input.DisplayName || (DisplayName != null && DisplayName.Equals(input.DisplayName)) ) && ( Data == input.Data || (Data != null && Data.Equals(input.Data)) ) && ( Password == input.Password || (Password != null && Password.Equals(input.Password)) ) && ( TimestampServerURI == input.TimestampServerURI || (TimestampServerURI != null && TimestampServerURI.Equals(input.TimestampServerURI)) ) && ( TimestampServerUserName == input.TimestampServerUserName || (TimestampServerUserName != null && TimestampServerUserName.Equals(input.TimestampServerUserName)) ) && ( TimestampServerUserPassword == input.TimestampServerUserPassword || (TimestampServerUserPassword != null && TimestampServerUserPassword.Equals(input.TimestampServerUserPassword)) )); }