/// <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 (ActionType != null) { hashCode = hashCode * 59 + ActionType.GetHashCode(); } if (FormFields != null) { hashCode = hashCode * 59 + FormFields.GetHashCode(); } if (RedirectData != null) { hashCode = hashCode * 59 + RedirectData.GetHashCode(); } if (RenderingData != null) { hashCode = hashCode * 59 + RenderingData.GetHashCode(); } if (ShowData != null) { hashCode = hashCode * 59 + ShowData.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 (DisplayedDataType != null) { hashCode = hashCode * 59 + DisplayedDataType.GetHashCode(); } if (RenderingData != null) { hashCode = hashCode * 59 + RenderingData.GetHashCode(); } if (ShowData != null) { hashCode = hashCode * 59 + ShowData.GetHashCode(); } return(hashCode); } }