public override int GetHashCode() { int hash = 1; if (Sn != 0UL) { hash ^= Sn.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (base_ != null) { hash ^= Base.GetHashCode(); } if (misc_ != null) { hash ^= Misc.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Exchange.Length != 0) { hash ^= Exchange.GetHashCode(); } if (Base.Length != 0) { hash ^= Base.GetHashCode(); } if (Quote.Length != 0) { hash ^= Quote.GetHashCode(); } if (Symbol.Length != 0) { hash ^= Symbol.GetHashCode(); } hash ^= bids_.GetHashCode(); hash ^= asks_.GetHashCode(); if (Timestamp != 0L) { hash ^= Timestamp.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <inheritdoc /> public override int GetHashCode() { unchecked { return(((Base != null ? Base.GetHashCode() : 0) * 397) ^ (Quote != null ? Quote.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { var hashCode = Base.GetHashCode(); hashCode = (hashCode * 397) ^ Shoulder.GetHashCode(); hashCode = (hashCode * 397) ^ Elbow.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Base != null ? Base.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Line; hashCode = (hashCode * 397) ^ Column; return(hashCode); } }
public override int GetHashCode() { var hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Code != null ? Code.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Base != null ? Base.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Xpath != null ? Xpath.GetHashCode() : 0); return(hashCode); }
/// <summary> /// Generate a hash code for the value. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { // Overflow is fine, just wrap unchecked { var hash = 17; hash = hash * 23 + Base.GetHashCode(); hash = hash * 23 + StartingOffset.GetHashCode(); hash = hash * 23 + Length.GetHashCode(); return(hash); } }
public override int GetHashCodeCore() { unchecked { var hashCode = 13; hashCode = (hashCode * 397) ^ (string.IsNullOrEmpty(Symbol) ? 0 : Symbol.GetHashCode()); hashCode = (hashCode * 397) ^ Base.GetHashCode(); hashCode = (hashCode * 397) ^ Counter.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (base_ != null) { hash ^= Base.GetHashCode(); } hash ^= children_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) { hash ^= Symbol.GetHashCode(); } if (TradeId.Length != 0) { hash ^= TradeId.GetHashCode(); } if (Exchange.Length != 0) { hash ^= Exchange.GetHashCode(); } if (Base.Length != 0) { hash ^= Base.GetHashCode(); } if (Quote.Length != 0) { hash ^= Quote.GetHashCode(); } if (Price != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price); } if (Amount != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Amount); } if (Timestamp != 0L) { hash ^= Timestamp.GetHashCode(); } if (Side.Length != 0) { hash ^= Side.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashcode = ResultLimit + ResultOffset; hashcode = hashcode << 1; hashcode = hashcode ^ (itsSelectAll ? 3 : 13); hashcode = hashcode ^ itsPatternGroup.GetHashCode(); hashcode = hashcode ^ (OrderDirection == SortOrder.Ascending ? 3 : 13); hashcode = hashcode >> 1; hashcode = hashcode ^ (ResultForm == ResultFormType.Select ? 3 : 13); hashcode = hashcode << 1; hashcode = hashcode ^ (ResultForm == ResultFormType.Describe ? 3 : 13); hashcode = hashcode << 1; hashcode = hashcode ^ (ResultForm == ResultFormType.Ask ? 3 : 13); hashcode = hashcode << 1; hashcode = hashcode ^ (ResultForm == ResultFormType.Construct ? 3 : 13); hashcode = hashcode >> 1; hashcode = hashcode ^ Base.GetHashCode(); hashcode = hashcode << 1; hashcode = hashcode ^ OrderBy.GetHashCode(); if (itsQueryGroup != null) { hashcode = hashcode << 1; hashcode = hashcode ^ itsQueryGroup.GetHashCode(); } foreach (Variable variable in itsVariables) { hashcode = hashcode >> 1; hashcode = hashcode ^ variable.GetHashCode(); } foreach (PatternTerm term in itsDescribeTerms) { hashcode = hashcode >> 1; hashcode = hashcode ^ term.GetHashCode(); } return(hashcode); }
public override int GetHashCode() { unchecked { return((Url != null ? Url.GetHashCode() : 0) ^ (HtmlUrl != null ? HtmlUrl.GetHashCode() : 0) ^ (DiffUrl != null ? DiffUrl.GetHashCode() : 0) ^ (PatchUrl != null ? PatchUrl.GetHashCode() : 0) ^ (IssueUrl != null ? IssueUrl.GetHashCode() : 0) ^ (Number != null ? Number.GetHashCode() : 0) ^ (State != null ? State.GetHashCode() : 0) ^ (Title != null ? Title.GetHashCode() : 0) ^ (Body != null ? Body.GetHashCode() : 0) ^ (BodyHtml != null ? BodyHtml.GetHashCode() : 0) ^ (CreatedAt != null ? CreatedAt.GetHashCode() : 0) ^ (UpdatedAt != null ? UpdatedAt.GetHashCode() : 0) ^ (ClosedAt != null ? ClosedAt.GetHashCode() : 0) ^ (MergedAt != null ? MergedAt.GetHashCode() : 0) ^ (Head != null ? Head.GetHashCode() : 0) ^ (Base != null ? Base.GetHashCode() : 0) ^ (User != null ? User.GetHashCode() : 0) ^ (Merged != null ? Merged.GetHashCode() : 0) ^ (Mergeable != null ? Mergeable.GetHashCode() : 0) ^ (MergedBy != null ? MergedBy.GetHashCode() : 0) ^ (Comments != null ? Comments.GetHashCode() : 0) ^ (Commits != null ? Commits.GetHashCode() : 0) ^ (Additions != null ? Additions.GetHashCode() : 0) ^ (Deletions != null ? Deletions.GetHashCode() : 0) ^ (ChangedFiles != null ? ChangedFiles.GetHashCode() : 0)); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked { return(((Base?.GetHashCode() ?? 0) * 397) ^ (Offset?.GetHashCode() ?? 0)); } }
public override int GetHashCode() { return(Base.GetHashCode()); }
public int CompareTo(Base other) { return(GetHashCode().CompareTo(other.GetHashCode())); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Visible != null) { hashCode = hashCode * 59 + Visible.GetHashCode(); } if (ShowLegend != null) { hashCode = hashCode * 59 + ShowLegend.GetHashCode(); } if (LegendGroup != null) { hashCode = hashCode * 59 + LegendGroup.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (UId != null) { hashCode = hashCode * 59 + UId.GetHashCode(); } if (Ids != null) { hashCode = hashCode * 59 + Ids.GetHashCode(); } if (CustomData != null) { hashCode = hashCode * 59 + CustomData.GetHashCode(); } if (Meta != null) { hashCode = hashCode * 59 + Meta.GetHashCode(); } if (MetaArray != null) { hashCode = hashCode * 59 + MetaArray.GetHashCode(); } if (SelectedPoints != null) { hashCode = hashCode * 59 + SelectedPoints.GetHashCode(); } if (HoverLabel != null) { hashCode = hashCode * 59 + HoverLabel.GetHashCode(); } if (Stream != null) { hashCode = hashCode * 59 + Stream.GetHashCode(); } if (Transforms != null) { hashCode = hashCode * 59 + Transforms.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } if (R != null) { hashCode = hashCode * 59 + R.GetHashCode(); } if (Theta != null) { hashCode = hashCode * 59 + Theta.GetHashCode(); } if (R0 != null) { hashCode = hashCode * 59 + R0.GetHashCode(); } if (Dr != null) { hashCode = hashCode * 59 + Dr.GetHashCode(); } if (Theta0 != null) { hashCode = hashCode * 59 + Theta0.GetHashCode(); } if (DTheta != null) { hashCode = hashCode * 59 + DTheta.GetHashCode(); } if (ThetaUnit != null) { hashCode = hashCode * 59 + ThetaUnit.GetHashCode(); } if (Base != null) { hashCode = hashCode * 59 + Base.GetHashCode(); } if (BaseArray != null) { hashCode = hashCode * 59 + BaseArray.GetHashCode(); } if (Offset != null) { hashCode = hashCode * 59 + Offset.GetHashCode(); } if (OffsetArray != null) { hashCode = hashCode * 59 + OffsetArray.GetHashCode(); } if (Width != null) { hashCode = hashCode * 59 + Width.GetHashCode(); } if (WidthArray != null) { hashCode = hashCode * 59 + WidthArray.GetHashCode(); } if (Text != null) { hashCode = hashCode * 59 + Text.GetHashCode(); } if (TextArray != null) { hashCode = hashCode * 59 + TextArray.GetHashCode(); } if (HoverText != null) { hashCode = hashCode * 59 + HoverText.GetHashCode(); } if (HoverTextArray != null) { hashCode = hashCode * 59 + HoverTextArray.GetHashCode(); } if (Marker != null) { hashCode = hashCode * 59 + Marker.GetHashCode(); } if (HoverInfo != null) { hashCode = hashCode * 59 + HoverInfo.GetHashCode(); } if (HoverInfoArray != null) { hashCode = hashCode * 59 + HoverInfoArray.GetHashCode(); } if (HoverTemplate != null) { hashCode = hashCode * 59 + HoverTemplate.GetHashCode(); } if (HoverTemplateArray != null) { hashCode = hashCode * 59 + HoverTemplateArray.GetHashCode(); } if (Selected != null) { hashCode = hashCode * 59 + Selected.GetHashCode(); } if (Unselected != null) { hashCode = hashCode * 59 + Unselected.GetHashCode(); } if (Subplot != null) { hashCode = hashCode * 59 + Subplot.GetHashCode(); } if (IdsSrc != null) { hashCode = hashCode * 59 + IdsSrc.GetHashCode(); } if (CustomDataSrc != null) { hashCode = hashCode * 59 + CustomDataSrc.GetHashCode(); } if (MetaSrc != null) { hashCode = hashCode * 59 + MetaSrc.GetHashCode(); } if (RSrc != null) { hashCode = hashCode * 59 + RSrc.GetHashCode(); } if (ThetaSrc != null) { hashCode = hashCode * 59 + ThetaSrc.GetHashCode(); } if (BaseSrc != null) { hashCode = hashCode * 59 + BaseSrc.GetHashCode(); } if (OffsetSrc != null) { hashCode = hashCode * 59 + OffsetSrc.GetHashCode(); } if (WidthSrc != null) { hashCode = hashCode * 59 + WidthSrc.GetHashCode(); } if (TextSrc != null) { hashCode = hashCode * 59 + TextSrc.GetHashCode(); } if (HoverTextSrc != null) { hashCode = hashCode * 59 + HoverTextSrc.GetHashCode(); } if (HoverInfoSrc != null) { hashCode = hashCode * 59 + HoverInfoSrc.GetHashCode(); } if (HoverTemplateSrc != null) { hashCode = hashCode * 59 + HoverTemplateSrc.GetHashCode(); } return(hashCode); } }
protected bool IsEqual(Base obj) => ReferenceEquals(this, obj) || !(obj is null) && GetType() == obj.GetType() && GetHashCode() == obj.GetHashCode() && GetImmutableTuple() != obj.GetImmutableTuple();