Exemplo n.º 1
0
 /// <summary>
 /// Get a hash code for the current object.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(2 * Width.GetHashCode() + 5 * Height.GetHashCode());
 }
Exemplo n.º 2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 => X.GetHashCode() * 397
 ^ Y.GetHashCode() * 397
 ^ Width.GetHashCode() * 397
 ^ Height.GetHashCode() * 397;
Exemplo n.º 3
0
 /// <summary>
 /// Calculate hash code for comparison one figure with another.
 /// </summary>
 /// <returns>Hash code.</returns>
 public override int GetHashCode()
 {
     return(Length.GetHashCode() + Width.GetHashCode());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the hash code for this Size
 /// </summary>
 /// <returns>Hash code value for this size</returns>
 public override int GetHashCode()
 {
     return(Width.GetHashCode() ^ Height.GetHashCode());
 }
Exemplo n.º 5
0
 public override int GetHashCode() => HashHelpers.Combine(Width.GetHashCode(), Height.GetHashCode());
Exemplo n.º 6
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         if (Visible != null)
         {
             hashCode = hashCode * 59 + Visible.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Symmetric != null)
         {
             hashCode = hashCode * 59 + Symmetric.GetHashCode();
         }
         if (Array != null)
         {
             hashCode = hashCode * 59 + Array.GetHashCode();
         }
         if (ArrayMinus != null)
         {
             hashCode = hashCode * 59 + ArrayMinus.GetHashCode();
         }
         if (Value != null)
         {
             hashCode = hashCode * 59 + Value.GetHashCode();
         }
         if (ValueMinus != null)
         {
             hashCode = hashCode * 59 + ValueMinus.GetHashCode();
         }
         if (TraceRef != null)
         {
             hashCode = hashCode * 59 + TraceRef.GetHashCode();
         }
         if (TraceRefMinus != null)
         {
             hashCode = hashCode * 59 + TraceRefMinus.GetHashCode();
         }
         if (CopyYStyle != null)
         {
             hashCode = hashCode * 59 + CopyYStyle.GetHashCode();
         }
         if (Color != null)
         {
             hashCode = hashCode * 59 + Color.GetHashCode();
         }
         if (Thickness != null)
         {
             hashCode = hashCode * 59 + Thickness.GetHashCode();
         }
         if (Width != null)
         {
             hashCode = hashCode * 59 + Width.GetHashCode();
         }
         if (ArraySrc != null)
         {
             hashCode = hashCode * 59 + ArraySrc.GetHashCode();
         }
         if (ArrayMinusSrc != null)
         {
             hashCode = hashCode * 59 + ArrayMinusSrc.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PositionX != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PositionX);
            }
            if (PositionY != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PositionY);
            }
            if (Width != 0)
            {
                hash ^= Width.GetHashCode();
            }
            if (Height != 0)
            {
                hash ^= Height.GetHashCode();
            }
            if (Direction != 0)
            {
                hash ^= Direction.GetHashCode();
            }
            if (ObjType != 0)
            {
                hash ^= ObjType.GetHashCode();
            }
            if (BlockType != 0)
            {
                hash ^= BlockType.GetHashCode();
            }
            if (DishType != 0)
            {
                hash ^= DishType.GetHashCode();
            }
            if (ToolType != 0)
            {
                hash ^= ToolType.GetHashCode();
            }
            if (TriggerType != 0)
            {
                hash ^= TriggerType.GetHashCode();
            }
            if (IsMoving != false)
            {
                hash ^= IsMoving.GetHashCode();
            }
            hash ^= buff_.GetHashCode();
            if (SpeakText.Length != 0)
            {
                hash ^= SpeakText.GetHashCode();
            }
            if (Team != 0)
            {
                hash ^= Team.GetHashCode();
            }
            if (SightRange != 0)
            {
                hash ^= SightRange.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 8
0
 /// <summary>Get the hash code for this System.Windows.Rect structure. For information
 /// about the use of hash codes, see Object.GetHashCode.</summary>
 /// <returns>The hash code for this System.Windows.Rect.<see cref="System.Int32"/></returns>
 public override int GetHashCode()
 {
     return(Left.GetHashCode() ^ Top.GetHashCode() ^ Width.GetHashCode() ^ Height.GetHashCode());
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     return(unchecked (Width.GetHashCode() * 17 + Height.GetHashCode()));
     //=> HashHelpers.Combine(Width.GetHashCode(), Height.GetHashCode());
 }
Exemplo n.º 10
0
 /// <summary>
 /// Liefert den Hashcode dieser Instanz.
 /// </summary>
 /// <returns>Der Hashcode der Instanz.</returns>
 public override int GetHashCode()
 {
     return(Url.GetHashCode() ^ Width.GetHashCode() ^ Height.GetHashCode() ^ Link.GetHashCode() ^ Title.GetHashCode());
 }
Exemplo n.º 11
0
 /// <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);
     }
 }
Exemplo n.º 12
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Visible != null)
                {
                    hashCode = hashCode * 59 + Visible.GetHashCode();
                }

                if (X != null)
                {
                    hashCode = hashCode * 59 + X.GetHashCode();
                }

                if (Y != null)
                {
                    hashCode = hashCode * 59 + Y.GetHashCode();
                }

                if (Z != null)
                {
                    hashCode = hashCode * 59 + Z.GetHashCode();
                }

                if (Ax != null)
                {
                    hashCode = hashCode * 59 + Ax.GetHashCode();
                }

                if (Ay != null)
                {
                    hashCode = hashCode * 59 + Ay.GetHashCode();
                }

                if (XAnchor != null)
                {
                    hashCode = hashCode * 59 + XAnchor.GetHashCode();
                }

                if (XShift != null)
                {
                    hashCode = hashCode * 59 + XShift.GetHashCode();
                }

                if (YAnchor != null)
                {
                    hashCode = hashCode * 59 + YAnchor.GetHashCode();
                }

                if (YShift != null)
                {
                    hashCode = hashCode * 59 + YShift.GetHashCode();
                }

                if (Text != null)
                {
                    hashCode = hashCode * 59 + Text.GetHashCode();
                }

                if (TextAngle != null)
                {
                    hashCode = hashCode * 59 + TextAngle.GetHashCode();
                }

                if (Font != null)
                {
                    hashCode = hashCode * 59 + Font.GetHashCode();
                }

                if (Width != null)
                {
                    hashCode = hashCode * 59 + Width.GetHashCode();
                }

                if (Height != null)
                {
                    hashCode = hashCode * 59 + Height.GetHashCode();
                }

                if (Opacity != null)
                {
                    hashCode = hashCode * 59 + Opacity.GetHashCode();
                }

                if (Align != null)
                {
                    hashCode = hashCode * 59 + Align.GetHashCode();
                }

                if (VAlign != null)
                {
                    hashCode = hashCode * 59 + VAlign.GetHashCode();
                }

                if (BgColor != null)
                {
                    hashCode = hashCode * 59 + BgColor.GetHashCode();
                }

                if (BorderColor != null)
                {
                    hashCode = hashCode * 59 + BorderColor.GetHashCode();
                }

                if (BorderPad != null)
                {
                    hashCode = hashCode * 59 + BorderPad.GetHashCode();
                }

                if (BorderWidth != null)
                {
                    hashCode = hashCode * 59 + BorderWidth.GetHashCode();
                }

                if (ShowArrow != null)
                {
                    hashCode = hashCode * 59 + ShowArrow.GetHashCode();
                }

                if (ArrowColor != null)
                {
                    hashCode = hashCode * 59 + ArrowColor.GetHashCode();
                }

                if (Arrowhead != null)
                {
                    hashCode = hashCode * 59 + Arrowhead.GetHashCode();
                }

                if (StartArrowhead != null)
                {
                    hashCode = hashCode * 59 + StartArrowhead.GetHashCode();
                }

                if (ArrowSide != null)
                {
                    hashCode = hashCode * 59 + ArrowSide.GetHashCode();
                }

                if (ArrowSize != null)
                {
                    hashCode = hashCode * 59 + ArrowSize.GetHashCode();
                }

                if (StartArrowSize != null)
                {
                    hashCode = hashCode * 59 + StartArrowSize.GetHashCode();
                }

                if (ArrowWidth != null)
                {
                    hashCode = hashCode * 59 + ArrowWidth.GetHashCode();
                }

                if (Standoff != null)
                {
                    hashCode = hashCode * 59 + Standoff.GetHashCode();
                }

                if (StartStandoff != null)
                {
                    hashCode = hashCode * 59 + StartStandoff.GetHashCode();
                }

                if (HoverText != null)
                {
                    hashCode = hashCode * 59 + HoverText.GetHashCode();
                }

                if (HoverLabel != null)
                {
                    hashCode = hashCode * 59 + HoverLabel.GetHashCode();
                }

                if (CaptureEvents != null)
                {
                    hashCode = hashCode * 59 + CaptureEvents.GetHashCode();
                }

                if (Name != null)
                {
                    hashCode = hashCode * 59 + Name.GetHashCode();
                }

                if (TemplateItemName != null)
                {
                    hashCode = hashCode * 59 + TemplateItemName.GetHashCode();
                }

                return(hashCode);
            }
        }
Exemplo n.º 13
0
 public override int GetHashCode()
 {
     return(Left.GetHashCode() + Top.GetHashCode() + Width.GetHashCode() + Height.GetHashCode()
            + NearestZ.GetHashCode() + FarthestZ.GetHashCode() + Background.GetHashCode() + Camera.GetHashCode());
 }
Exemplo n.º 14
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(Color.GetHashCode() ^ Style.GetHashCode() ^ Width.GetHashCode());
 }
Exemplo n.º 15
0
 public override int GetHashCode() => (Width.GetHashCode() * 397) ^ Height.GetHashCode();
Exemplo n.º 16
0
 /// <inheritdoc/>
 public override int GetHashCode()
 => 859600377
 ^ Width.GetHashCode()
 ^ Height.GetHashCode();
Exemplo n.º 17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (relativePosition_ != null)
            {
                hash ^= RelativePosition.GetHashCode();
            }
            if (relativeVelocity_ != null)
            {
                hash ^= RelativeVelocity.GetHashCode();
            }
            if (Rcs != 0D)
            {
                hash ^= Rcs.GetHashCode();
            }
            if (MovingStatus != 0)
            {
                hash ^= MovingStatus.GetHashCode();
            }
            if (Width != 0D)
            {
                hash ^= Width.GetHashCode();
            }
            if (Length != 0D)
            {
                hash ^= Length.GetHashCode();
            }
            if (Height != 0D)
            {
                hash ^= Height.GetHashCode();
            }
            if (Theta != 0D)
            {
                hash ^= Theta.GetHashCode();
            }
            if (absolutePosition_ != null)
            {
                hash ^= AbsolutePosition.GetHashCode();
            }
            if (absoluteVelocity_ != null)
            {
                hash ^= AbsoluteVelocity.GetHashCode();
            }
            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            if (MovingFramesCount != 0)
            {
                hash ^= MovingFramesCount.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 18
0
 public override int GetHashCode() => X.GetHashCode() ^ Y.GetHashCode() ^ Width.GetHashCode() ^ Height.GetHashCode();
Exemplo n.º 19
0
 /// <summary>
 ///     TODO
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(Length.GetHashCode() + Width.GetHashCode() + Thickness.GetHashCode() +
            Volume.GetHashCode() + Asymmetry.GetHashCode() +
            (Asymmetry == 0.0 ? 0 : AsymmetryVector.GetHashCode()));
 }
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 public override int GetHashCode()
 {
     return(Width.GetHashCode() ^ Content.GetHashCode() ^ Alignment.GetHashCode() ^ WordWrappingMethod.GetHashCode());
 }
Exemplo n.º 21
0
 /// <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 (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 (HoverInfo != null)
         {
             hashCode = hashCode * 59 + HoverInfo.GetHashCode();
         }
         if (HoverInfoArray != null)
         {
             hashCode = hashCode * 59 + HoverInfoArray.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 (Y != null)
         {
             hashCode = hashCode * 59 + Y.GetHashCode();
         }
         if (X != null)
         {
             hashCode = hashCode * 59 + X.GetHashCode();
         }
         if (X0 != null)
         {
             hashCode = hashCode * 59 + X0.GetHashCode();
         }
         if (Y0 != null)
         {
             hashCode = hashCode * 59 + Y0.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Orientation != null)
         {
             hashCode = hashCode * 59 + Orientation.GetHashCode();
         }
         if (Bandwidth != null)
         {
             hashCode = hashCode * 59 + Bandwidth.GetHashCode();
         }
         if (ScaleGroup != null)
         {
             hashCode = hashCode * 59 + ScaleGroup.GetHashCode();
         }
         if (ScaleMode != null)
         {
             hashCode = hashCode * 59 + ScaleMode.GetHashCode();
         }
         if (SpanMode != null)
         {
             hashCode = hashCode * 59 + SpanMode.GetHashCode();
         }
         if (Span != null)
         {
             hashCode = hashCode * 59 + Span.GetHashCode();
         }
         if (Line != null)
         {
             hashCode = hashCode * 59 + Line.GetHashCode();
         }
         if (FillColor != null)
         {
             hashCode = hashCode * 59 + FillColor.GetHashCode();
         }
         if (Points != null)
         {
             hashCode = hashCode * 59 + Points.GetHashCode();
         }
         if (Jitter != null)
         {
             hashCode = hashCode * 59 + Jitter.GetHashCode();
         }
         if (PointPos != null)
         {
             hashCode = hashCode * 59 + PointPos.GetHashCode();
         }
         if (Width != null)
         {
             hashCode = hashCode * 59 + Width.GetHashCode();
         }
         if (Marker != null)
         {
             hashCode = hashCode * 59 + Marker.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 (HoverTemplate != null)
         {
             hashCode = hashCode * 59 + HoverTemplate.GetHashCode();
         }
         if (HoverTemplateArray != null)
         {
             hashCode = hashCode * 59 + HoverTemplateArray.GetHashCode();
         }
         if (Box != null)
         {
             hashCode = hashCode * 59 + Box.GetHashCode();
         }
         if (MeanLine != null)
         {
             hashCode = hashCode * 59 + MeanLine.GetHashCode();
         }
         if (Side != null)
         {
             hashCode = hashCode * 59 + Side.GetHashCode();
         }
         if (OffsetGroup != null)
         {
             hashCode = hashCode * 59 + OffsetGroup.GetHashCode();
         }
         if (AlignmentGroup != null)
         {
             hashCode = hashCode * 59 + AlignmentGroup.GetHashCode();
         }
         if (Selected != null)
         {
             hashCode = hashCode * 59 + Selected.GetHashCode();
         }
         if (Unselected != null)
         {
             hashCode = hashCode * 59 + Unselected.GetHashCode();
         }
         if (HoverOn != null)
         {
             hashCode = hashCode * 59 + HoverOn.GetHashCode();
         }
         if (XAxis != null)
         {
             hashCode = hashCode * 59 + XAxis.GetHashCode();
         }
         if (YAxis != null)
         {
             hashCode = hashCode * 59 + YAxis.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 (HoverInfoSrc != null)
         {
             hashCode = hashCode * 59 + HoverInfoSrc.GetHashCode();
         }
         if (YSrc != null)
         {
             hashCode = hashCode * 59 + YSrc.GetHashCode();
         }
         if (XSrc != null)
         {
             hashCode = hashCode * 59 + XSrc.GetHashCode();
         }
         if (TextSrc != null)
         {
             hashCode = hashCode * 59 + TextSrc.GetHashCode();
         }
         if (HoverTextSrc != null)
         {
             hashCode = hashCode * 59 + HoverTextSrc.GetHashCode();
         }
         if (HoverTemplateSrc != null)
         {
             hashCode = hashCode * 59 + HoverTemplateSrc.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 22
0
 public override int GetHashCode()
 {
     return(Width.GetHashCode() ^ (Color == null ? 0 : Color.GetHashCode()));
 }
Exemplo n.º 23
0
 public override int GetHashCode()
 {
     return(position.GetHashCode() + Width.GetHashCode() + Height.GetHashCode());
 }
Exemplo n.º 24
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Width != null)
                {
                    hashCode = hashCode * 59 + Width.GetHashCode();
                }

                if (WidthArray != null)
                {
                    hashCode = hashCode * 59 + WidthArray.GetHashCode();
                }

                if (Color != null)
                {
                    hashCode = hashCode * 59 + Color.GetHashCode();
                }

                if (ColorArray != null)
                {
                    hashCode = hashCode * 59 + ColorArray.GetHashCode();
                }

                if (CAuto != null)
                {
                    hashCode = hashCode * 59 + CAuto.GetHashCode();
                }

                if (CMin != null)
                {
                    hashCode = hashCode * 59 + CMin.GetHashCode();
                }

                if (CMax != null)
                {
                    hashCode = hashCode * 59 + CMax.GetHashCode();
                }

                if (CMid != null)
                {
                    hashCode = hashCode * 59 + CMid.GetHashCode();
                }

                if (ColorScale != null)
                {
                    hashCode = hashCode * 59 + ColorScale.GetHashCode();
                }

                if (AutoColorScale != null)
                {
                    hashCode = hashCode * 59 + AutoColorScale.GetHashCode();
                }

                if (ReverseScale != null)
                {
                    hashCode = hashCode * 59 + ReverseScale.GetHashCode();
                }

                if (ColorAxis != null)
                {
                    hashCode = hashCode * 59 + ColorAxis.GetHashCode();
                }

                if (WidthSrc != null)
                {
                    hashCode = hashCode * 59 + WidthSrc.GetHashCode();
                }

                if (ColorSrc != null)
                {
                    hashCode = hashCode * 59 + ColorSrc.GetHashCode();
                }

                return(hashCode);
            }
        }
Exemplo n.º 25
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CameraDev.Length != 0)
            {
                hash ^= CameraDev.GetHashCode();
            }
            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (PixelFormat.Length != 0)
            {
                hash ^= PixelFormat.GetHashCode();
            }
            if (IoMethod != 0)
            {
                hash ^= IoMethod.GetHashCode();
            }
            if (Width != 0)
            {
                hash ^= Width.GetHashCode();
            }
            if (Height != 0)
            {
                hash ^= Height.GetHashCode();
            }
            if (FrameRate != 0)
            {
                hash ^= FrameRate.GetHashCode();
            }
            if (Monochrome != false)
            {
                hash ^= Monochrome.GetHashCode();
            }
            if (Brightness != 0)
            {
                hash ^= Brightness.GetHashCode();
            }
            if (Contrast != 0)
            {
                hash ^= Contrast.GetHashCode();
            }
            if (Saturation != 0)
            {
                hash ^= Saturation.GetHashCode();
            }
            if (Sharpness != 0)
            {
                hash ^= Sharpness.GetHashCode();
            }
            if (Gain != 0)
            {
                hash ^= Gain.GetHashCode();
            }
            if (AutoFocus != false)
            {
                hash ^= AutoFocus.GetHashCode();
            }
            if (Focus != 0)
            {
                hash ^= Focus.GetHashCode();
            }
            if (AutoExposure != false)
            {
                hash ^= AutoExposure.GetHashCode();
            }
            if (Exposure != 0)
            {
                hash ^= Exposure.GetHashCode();
            }
            if (AutoWhiteBalance != false)
            {
                hash ^= AutoWhiteBalance.GetHashCode();
            }
            if (WhiteBalance != 0)
            {
                hash ^= WhiteBalance.GetHashCode();
            }
            if (BytesPerPixel != 0)
            {
                hash ^= BytesPerPixel.GetHashCode();
            }
            if (TriggerInternal != 0)
            {
                hash ^= TriggerInternal.GetHashCode();
            }
            if (TriggerFps != 0)
            {
                hash ^= TriggerFps.GetHashCode();
            }
            if (ChannelName.Length != 0)
            {
                hash ^= ChannelName.GetHashCode();
            }
            if (DeviceWaitMs != 0)
            {
                hash ^= DeviceWaitMs.GetHashCode();
            }
            if (SpinRate != 0)
            {
                hash ^= SpinRate.GetHashCode();
            }
            if (OutputType != 0)
            {
                hash ^= OutputType.GetHashCode();
            }
            if (compressConf_ != null)
            {
                hash ^= CompressConf.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 26
0
 /// <inheritdoc cref="object.GetHashCode()"/>
 public override int GetHashCode()
 => 711844102
 ^ Width.GetHashCode()
 ^ Height.GetHashCode();
Exemplo n.º 27
0
 /// <summary>
 ///     Indirect use only.
 ///     Differentiate borders.is it
 /// </summary>
 /// <returns>A hash code representing different sets of border attributes.</returns>
 public override int GetHashCode()
 {
     return(Width.GetHashCode() * 1000 + (int)Style);
 }