public override int GetHashCode() { unchecked { var hashCode = Context != null?Context.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (DefaultValue != null ? DefaultValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Required.GetHashCode(); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Min; hashCode = (hashCode * 397) ^ Max; hashCode = (hashCode * 397) ^ Stepsize; hashCode = (hashCode * 397) ^ (Pattern != null ? Pattern.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ReadOnly.GetHashCode(); hashCode = (hashCode * 397) ^ Multiple.GetHashCode(); hashCode = (hashCode * 397) ^ MultipleLimit; hashCode = (hashCode * 397) ^ (GroupName != null ? GroupName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Advanced.GetHashCode(); hashCode = (hashCode * 397) ^ Verify.GetHashCode(); hashCode = (hashCode * 397) ^ LimitToOptions.GetHashCode(); hashCode = (hashCode * 397) ^ (Unit != null ? Unit.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UnitLabel != null ? UnitLabel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Options != null ? Options.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FilterCriteria != null ? FilterCriteria.GetHashCode() : 0); 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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Context != null) { hashCode = hashCode * 59 + Context.GetHashCode(); } if (Advanced != null) { hashCode = hashCode * 59 + Advanced.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.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 (Parameters != null) { hashCode = hashCode * 59 + Parameters.GetHashCode(); } if (ParameterGroups != null) { hashCode = hashCode * 59 + ParameterGroups.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Category != null) { hashCode = hashCode * 59 + Category.GetHashCode(); } if (ItemType != null) { hashCode = hashCode * 59 + ItemType.GetHashCode(); } if (Kind != null) { hashCode = hashCode * 59 + Kind.GetHashCode(); } if (StateDescription != null) { hashCode = hashCode * 59 + StateDescription.GetHashCode(); } if (Tags != null) { hashCode = hashCode * 59 + Tags.GetHashCode(); } if (UID != null) { hashCode = hashCode * 59 + UID.GetHashCode(); } if (Advanced != null) { hashCode = hashCode * 59 + Advanced.GetHashCode(); } if (CommandDescription != null) { hashCode = hashCode * 59 + CommandDescription.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Name != null?Name.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (Context != null ? Context.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Advanced.GetHashCode(); hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); 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 (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Tags != null) { hashCode = hashCode * 59 + Tags.GetHashCode(); } if (Properties != null) { hashCode = hashCode * 59 + Properties.GetHashCode(); } if (Category != null) { hashCode = hashCode * 59 + Category.GetHashCode(); } if (StateDescription != null) { hashCode = hashCode * 59 + StateDescription.GetHashCode(); } if (Advanced != null) { hashCode = hashCode * 59 + Advanced.GetHashCode(); } if (TypeUID != null) { hashCode = hashCode * 59 + TypeUID.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Parameters != null?Parameters.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (ParameterGroups != null ? ParameterGroups.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ItemType != null ? ItemType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Kind != null ? Kind.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Uid != null ? Uid.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Advanced.GetHashCode(); hashCode = (hashCode * 397) ^ (StateDescription != null ? StateDescription.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Uid != null?Uid.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ChannelTypeUid != null ? ChannelTypeUid.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ItemType != null ? ItemType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Kind != null ? Kind.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DefaultTags != null ? DefaultTags.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Properties != null ? Properties.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StateDescription != null ? StateDescription.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Advanced.GetHashCode(); hashCode = (hashCode * 397) ^ (ThingConfiguration != null ? ThingConfiguration.GetHashCode() : 0); 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 (Context != null) { hashCode = hashCode * 59 + Context.GetHashCode(); } if (DefaultValue != null) { hashCode = hashCode * 59 + DefaultValue.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Required != null) { hashCode = hashCode * 59 + Required.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Min != null) { hashCode = hashCode * 59 + Min.GetHashCode(); } if (Max != null) { hashCode = hashCode * 59 + Max.GetHashCode(); } if (Stepsize != null) { hashCode = hashCode * 59 + Stepsize.GetHashCode(); } if (Pattern != null) { hashCode = hashCode * 59 + Pattern.GetHashCode(); } if (ReadOnly != null) { hashCode = hashCode * 59 + ReadOnly.GetHashCode(); } if (Multiple != null) { hashCode = hashCode * 59 + Multiple.GetHashCode(); } if (MultipleLimit != null) { hashCode = hashCode * 59 + MultipleLimit.GetHashCode(); } if (GroupName != null) { hashCode = hashCode * 59 + GroupName.GetHashCode(); } if (Advanced != null) { hashCode = hashCode * 59 + Advanced.GetHashCode(); } if (Verify != null) { hashCode = hashCode * 59 + Verify.GetHashCode(); } if (LimitToOptions != null) { hashCode = hashCode * 59 + LimitToOptions.GetHashCode(); } if (Unit != null) { hashCode = hashCode * 59 + Unit.GetHashCode(); } if (UnitLabel != null) { hashCode = hashCode * 59 + UnitLabel.GetHashCode(); } if (Options != null) { hashCode = hashCode * 59 + Options.GetHashCode(); } if (FilterCriteria != null) { hashCode = hashCode * 59 + FilterCriteria.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 :) hashCode = hashCode * 59 + Direction.GetHashCode(); if (ReduceOnly != null) { hashCode = hashCode * 59 + ReduceOnly.GetHashCode(); } if (Triggered != null) { hashCode = hashCode * 59 + Triggered.GetHashCode(); } if (OrderId != null) { hashCode = hashCode * 59 + OrderId.GetHashCode(); } if (Price != null) { hashCode = hashCode * 59 + Price.GetHashCode(); } hashCode = hashCode * 59 + TimeInForce.GetHashCode(); if (Api != null) { hashCode = hashCode * 59 + Api.GetHashCode(); } hashCode = hashCode * 59 + OrderState.GetHashCode(); if (Implv != null) { hashCode = hashCode * 59 + Implv.GetHashCode(); } hashCode = hashCode * 59 + Advanced.GetHashCode(); if (PostOnly != null) { hashCode = hashCode * 59 + PostOnly.GetHashCode(); } if (Usd != null) { hashCode = hashCode * 59 + Usd.GetHashCode(); } if (StopPrice != null) { hashCode = hashCode * 59 + StopPrice.GetHashCode(); } hashCode = hashCode * 59 + OrderType.GetHashCode(); if (LastUpdateTimestamp != null) { hashCode = hashCode * 59 + LastUpdateTimestamp.GetHashCode(); } hashCode = hashCode * 59 + OriginalOrderType.GetHashCode(); if (MaxShow != null) { hashCode = hashCode * 59 + MaxShow.GetHashCode(); } if (ProfitLoss != null) { hashCode = hashCode * 59 + ProfitLoss.GetHashCode(); } if (IsLiquidation != null) { hashCode = hashCode * 59 + IsLiquidation.GetHashCode(); } if (FilledAmount != null) { hashCode = hashCode * 59 + FilledAmount.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Commission != null) { hashCode = hashCode * 59 + Commission.GetHashCode(); } if (Amount != null) { hashCode = hashCode * 59 + Amount.GetHashCode(); } hashCode = hashCode * 59 + Trigger.GetHashCode(); if (InstrumentName != null) { hashCode = hashCode * 59 + InstrumentName.GetHashCode(); } if (CreationTimestamp != null) { hashCode = hashCode * 59 + CreationTimestamp.GetHashCode(); } if (AveragePrice != null) { hashCode = hashCode * 59 + AveragePrice.GetHashCode(); } return(hashCode); } }