/// <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 (CredentialID != null) { hashCode = hashCode * 59 + CredentialID.GetHashCode(); } if (Hash != null) { hashCode = hashCode * 59 + Hash.GetHashCode(); } if (SAD != null) { hashCode = hashCode * 59 + SAD.GetHashCode(); } if (ClientData != null) { hashCode = hashCode * 59 + ClientData.GetHashCode(); } return(hashCode); } }
/// <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 (SAD != null) { hashCode = hashCode * 59 + SAD.GetHashCode(); } if (ExpiresIn != null) { hashCode = hashCode * 59 + ExpiresIn.GetHashCode(); } return(hashCode); } }