/// <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 (AlwaysShow != null) { hashCode = hashCode * 59 + AlwaysShow.GetHashCode(); } if (DisplayOrder != null) { hashCode = hashCode * 59 + DisplayOrder.GetHashCode(); } if (FormElement != null) { hashCode = hashCode * 59 + FormElement.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Link != null) { hashCode = hashCode * 59 + Link.GetHashCode(); } if (Mask != null) { hashCode = hashCode * 59 + Mask.GetHashCode(); } if (Obfuscate != null) { hashCode = hashCode * 59 + Obfuscate.GetHashCode(); } if (PlaceholderLabel != null) { hashCode = hashCode * 59 + PlaceholderLabel.GetHashCode(); } if (PreferredInputType != null) { hashCode = hashCode * 59 + PreferredInputType.GetHashCode(); } if (Tooltip != null) { hashCode = hashCode * 59 + Tooltip.GetHashCode(); } return(hashCode); } }