public override int GetHashCode() { var hashCode = -2125747154; hashCode = hashCode * -1521134295 + Uid.GetHashCode(); hashCode = hashCode * -1521134295 + Ifnr.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Text); hashCode = hashCode * -1521134295 + MinValue.GetHashCode(); hashCode = hashCode * -1521134295 + MaxValue.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Datatype); hashCode = hashCode * -1521134295 + Group.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Modify); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Visible); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FunctionPointer); hashCode = hashCode * -1521134295 + PropertyBitMask.GetHashCode(); hashCode = hashCode * -1521134295 + ParentUserDirCode.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <ComboBoxInput> .Default.GetHashCode(ComboBox); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(TextBox); return(hashCode); }
public override int GetHashCode() { unchecked { return((MaxValue.GetHashCode() * 397) ^ MinValue.GetHashCode()); } }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { unchecked { int hashCode = 17 + MaxValue.GetHashCode() ^ MinValue.GetHashCode() ^ AllowNull.GetHashCode() ^ ReadOnly.GetHashCode() + 31 * GetHashCode(PossibleValues); return((DefaultValue == null) ? hashCode : hashCode * 32 + DefaultValue.GetHashCode()); } }
public override int GetHashCode() { unchecked { var hashCode = IsInteger.GetHashCode(); hashCode = (hashCode * 397) ^ MaxValue.GetHashCode(); hashCode = (hashCode * 397) ^ MinValue.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 23; hash = hash * 37 + MinValue.GetHashCode(); hash = hash * 37 + MaxValue.GetHashCode(); return(hash); } }
/// <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 (MaxValue != null) { hashCode = hashCode * 59 + MaxValue.GetHashCode(); } if (MinValue != null) { hashCode = hashCode * 59 + MinValue.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (WidgetId != null) { hashCode = hashCode * 59 + WidgetId.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Visibility != null) { hashCode = hashCode * 59 + Visibility.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Icon != null) { hashCode = hashCode * 59 + Icon.GetHashCode(); } if (Labelcolor != null) { hashCode = hashCode * 59 + Labelcolor.GetHashCode(); } if (Valuecolor != null) { hashCode = hashCode * 59 + Valuecolor.GetHashCode(); } if (Mappings != null) { hashCode = hashCode * 59 + Mappings.GetHashCode(); } if (SwitchSupport != null) { hashCode = hashCode * 59 + SwitchSupport.GetHashCode(); } if (SendFrequency != null) { hashCode = hashCode * 59 + SendFrequency.GetHashCode(); } if (Separator != null) { hashCode = hashCode * 59 + Separator.GetHashCode(); } if (Refresh != null) { hashCode = hashCode * 59 + Refresh.GetHashCode(); } if (Height != null) { hashCode = hashCode * 59 + Height.GetHashCode(); } if (MinValue != null) { hashCode = hashCode * 59 + MinValue.GetHashCode(); } if (MaxValue != null) { hashCode = hashCode * 59 + MaxValue.GetHashCode(); } if (Step != null) { hashCode = hashCode * 59 + Step.GetHashCode(); } if (Url != null) { hashCode = hashCode * 59 + Url.GetHashCode(); } if (Encoding != null) { hashCode = hashCode * 59 + Encoding.GetHashCode(); } if (Service != null) { hashCode = hashCode * 59 + Service.GetHashCode(); } if (Period != null) { hashCode = hashCode * 59 + Period.GetHashCode(); } if (Legend != null) { hashCode = hashCode * 59 + Legend.GetHashCode(); } if (State != null) { hashCode = hashCode * 59 + State.GetHashCode(); } if (Item != null) { hashCode = hashCode * 59 + Item.GetHashCode(); } if (LinkedPage != null) { hashCode = hashCode * 59 + LinkedPage.GetHashCode(); } if (Widgets != null) { hashCode = hashCode * 59 + Widgets.GetHashCode(); } return(hashCode); } }