/// <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 (Typeid != null) { hashCode = hashCode * 59 + Typeid.GetHashCode(); } if (Data != null) { hashCode = hashCode * 59 + Data.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 (Typeid != null) { hashCode = hashCode * 59 + Typeid.GetHashCode(); } if (FeedbackTypeName != null) { hashCode = hashCode * 59 + FeedbackTypeName.GetHashCode(); } if (FeedbackTypeDescription != null) { hashCode = hashCode * 59 + FeedbackTypeDescription.GetHashCode(); } return(hashCode); } }