/// <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 (UserMapping != null) { hashCode = hashCode * 59 + UserMapping.GetHashCode(); } if (UserDefault != null) { hashCode = hashCode * 59 + UserDefault.GetHashCode(); } if (UserEnableDefaultMapping != null) { hashCode = hashCode * 59 + UserEnableDefaultMapping.GetHashCode(); } if (RequireValidation != null) { hashCode = hashCode * 59 + RequireValidation.GetHashCode(); } return(hashCode); } }