예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Radius.GetHashCode() * 397) ^ Length.GetHashCode());
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((CentrePoint.GetHashCode() * 397) ^ Radius.GetHashCode());
     }
 }
예제 #3
0
 public override int GetHashCode(SpatialEqualityOptions options)
 {
     unchecked
     {
         return((Radius.GetHashCode() * 397) ^ (Center != null ? Center.GetHashCode(options) : 0));
     }
 }
예제 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Position.GetHashCode() * 397) ^ Radius.GetHashCode());
     }
 }
        public override int GetHashCode()
        {
            int hashCode = 1866836079;

            hashCode = hashCode * -1521134295 + Radius.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <V3> .Default.GetHashCode(Center);

            return(hashCode);
        }
예제 #6
0
 /// <inheritdoc/>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 23 + Center.GetHashCode();
         hash = hash * 23 + Radius.GetHashCode();
         return(hash);
     }
 }
예제 #7
0
        public override int GetHashCode()
        {
            int hashCode = 805375570;

            hashCode = hashCode * -1521134295 + Radius.GetHashCode();
            hashCode = hashCode * -1521134295 + Center.GetHashCode();
            hashCode = hashCode * -1521134295 + Transform.GetHashCode();
            hashCode = hashCode * -1521134295 + Material.GetHashCode();
            return(hashCode);
        }
예제 #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Radius.GetHashCode();
         hashCode = (hashCode * 397) ^ Thickness.GetHashCode();
         hashCode = (hashCode * 397) ^ Weight.GetHashCode();
         return(hashCode);
     }
 }
예제 #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Latitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Radius.GetHashCode();
         return(hashCode);
     }
 }
예제 #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = RelativeX;
         result = (result * 397) ^ RelativeY;
         result = (result * 397) ^ Radius.GetHashCode();
         result = (result * 397) ^ OriginalRadius.GetHashCode();
         return(result);
     }
 }
예제 #11
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = Latitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Limit.GetHashCode();
         hashCode = (hashCode * 397) ^ Radius.GetHashCode();
         hashCode = (hashCode * 397) ^ WideSearch.GetHashCode();
         return(hashCode);
     }
 }
예제 #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Position != null ? Position.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Radius.GetHashCode();
         hashCode = (hashCode * 397) ^ (ContinentId != null ? ContinentId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TileX.GetHashCode();
         hashCode = (hashCode * 397) ^ TileY.GetHashCode();
         return(hashCode);
     }
 }
예제 #13
0
        public override int GetHashCode()
        {
            var hashCode = -727309877;

            hashCode = hashCode * -1521134295 + IdServices.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(NameService);

            hashCode = hashCode * -1521134295 + Radius.GetHashCode();
            hashCode = hashCode * -1521134295 + Price.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <byte[]> .Default.GetHashCode(ImageBytes);

            return(hashCode);
        }
예제 #14
0
 public int GetHashCode(RadialBarSettings obj)
 {
     // https://stackoverflow.com/a/263416/2604271
     unchecked // Overflow is fine, just wrap
     {
         var hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + Radius.GetHashCode();
         hash = hash * 23 + Width.GetHashCode();
         hash = hash * 23 + Progress.GetHashCode();
         hash = hash * 23 + RadiansPerSection.GetHashCode();
         return(hash);
     }
 }
예제 #15
0
파일: Circle.cs 프로젝트: lanicon/Styx
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     return(X.GetHashCode() ^ 1 + Y.GetHashCode() ^ 2 + Radius.GetHashCode());
 }
예제 #16
0
 public override int GetHashCode()
 {
     return(Radius.GetHashCode() ^ Center.GetHashCode() ^ Offset.GetHashCode());
 }
예제 #17
0
 public override int GetHashCode() =>
 Radius.GetHashCode() ^ Theta.GetHashCode() ^ Phi.GetHashCode();
예제 #18
0
파일: Sphere3.cs 프로젝트: minskowl/MY
 /// <summary>Builds a hashing code for the instance</summary>
 /// <returns>The instance's hashing code</returns>
 public override int GetHashCode()
 {
     return(Center.GetHashCode() ^ Radius.GetHashCode());
 }
예제 #19
0
 public override int GetHashCode()
 {
     int hash = ((Radius.GetHashCode() << 5) + Radius.GetHashCode()) ^ Polar.GetHashCode();
     hash = ((hash << 5) + hash) ^ Elevation.GetHashCode();
     return hash;
 }
예제 #20
0
 public override int GetHashCode()
 {
     return(X.GetHashCode() * Y.GetHashCode() * Radius.GetHashCode());
 }
예제 #21
0
 /// <summary>
 /// Computes a hash code for the arc.
 /// </summary>
 /// <returns>A unique hashCode of an arc.</returns>
 public override int GetHashCode()
 {
     return(Radius.GetHashCode() ^ Angle.GetHashCode() ^ Plane.GetHashCode());
 }
예제 #22
0
 /// <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() => Height.GetHashCode() ^ _azimuth.GetHashCode() ^ Radius.GetHashCode();
예제 #23
0
파일: Cylinder3.cs 프로젝트: minskowl/MY
 /// <summary>Builds a hashing code for the instance</summary>
 /// <returns>The instance's hashing code</returns>
 public override int GetHashCode()
 {
     return
         (Transform.GetHashCode() ^ Center.GetHashCode() ^
          Radius.GetHashCode() ^ Height.GetHashCode());
 }
예제 #24
0
파일: Sphere.cs 프로젝트: lanicon/Styx
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     return(Left.GetHashCode() ^ 1 + Top.GetHashCode() ^ 2 + Front.GetHashCode() ^ 3 + Radius.GetHashCode());
 }
예제 #25
0
 /// <summary>
 ///     Gets the hash code of this <see cref="CircleF" />.
 /// </summary>
 /// <returns>Hash code of this <see cref="CircleF" />.</returns>
 public override int GetHashCode()
 {
     // ReSharper disable NonReadonlyMemberInGetHashCode
     return(Center.GetHashCode() ^ Radius.GetHashCode());
     // ReSharper restore NonReadonlyMemberInGetHashCode
 }
예제 #26
0
        public override int GetHashCode()
        {
            var hashCode = -1002157333;

            hashCode = hashCode * -1521134295 + Index.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FullName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(GroupName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(SetName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Display);

            hashCode = hashCode * -1521134295 + Available.GetHashCode();
            hashCode = hashCode * -1521134295 + ModesRequired.GetHashCode();
            hashCode = hashCode * -1521134295 + ModesDisallowed.GetHashCode();
            hashCode = hashCode * -1521134295 + PowerType.GetHashCode();
            hashCode = hashCode * -1521134295 + Accuracy.GetHashCode();
            hashCode = hashCode * -1521134295 + AttackTypes.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string[]> .Default.GetHashCode(GroupMemberships);

            hashCode = hashCode * -1521134295 + EntitiesAffected.GetHashCode();
            hashCode = hashCode * -1521134295 + EntitiesAutoHit.GetHashCode();
            hashCode = hashCode * -1521134295 + Target.GetHashCode();
            hashCode = hashCode * -1521134295 + TargetLineOfSight.GetHashCode();
            hashCode = hashCode * -1521134295 + Range.GetHashCode();
            hashCode = hashCode * -1521134295 + TargetSecondary.GetHashCode();
            hashCode = hashCode * -1521134295 + RangeSecondary.GetHashCode();
            hashCode = hashCode * -1521134295 + EnduranceCost.GetHashCode();
            hashCode = hashCode * -1521134295 + InterruptTime.GetHashCode();
            hashCode = hashCode * -1521134295 + CastTime.GetHashCode();
            hashCode = hashCode * -1521134295 + RechargeTime.GetHashCode();
            hashCode = hashCode * -1521134295 + BaseRechargeTime.GetHashCode();
            hashCode = hashCode * -1521134295 + ActivatePeriod.GetHashCode();
            hashCode = hashCode * -1521134295 + EffectArea.GetHashCode();
            hashCode = hashCode * -1521134295 + Radius.GetHashCode();
            hashCode = hashCode * -1521134295 + Arc.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxTargets.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(MaxBoosts);

            hashCode = hashCode * -1521134295 + CastFlags.GetHashCode();
            hashCode = hashCode * -1521134295 + ArtificalIntelligenceReport.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberOfCharges.GetHashCode();
            hashCode = hashCode * -1521134295 + UsageTime.GetHashCode();
            hashCode = hashCode * -1521134295 + LifeTime.GetHashCode();
            hashCode = hashCode * -1521134295 + LifeTimeInGame.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberAllowed.GetHashCode();
            hashCode = hashCode * -1521134295 + DoNotSave.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string[]> .Default.GetHashCode(BoostsAllowed);

            hashCode = hashCode * -1521134295 + CastThroughHold.GetHashCode();
            hashCode = hashCode * -1521134295 + IgnoreStrength.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DescriptionShort);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DescriptionLong);

            hashCode = hashCode * -1521134295 + EqualityComparer <int[]> .Default.GetHashCode(SetTypes);

            hashCode = hashCode * -1521134295 + ClickBuff.GetHashCode();
            hashCode = hashCode * -1521134295 + AlwaysToggle.GetHashCode();
            hashCode = hashCode * -1521134295 + Level.GetHashCode();
            hashCode = hashCode * -1521134295 + AllowFrontLoading.GetHashCode();
            hashCode = hashCode * -1521134295 + VariableEnabled.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(VariableName);

            hashCode = hashCode * -1521134295 + VariableMin.GetHashCode();
            hashCode = hashCode * -1521134295 + VariableMax.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string[]> .Default.GetHashCode(SubPowers);

            hashCode = hashCode * -1521134295 + EqualityComparer <int[]> .Default.GetHashCode(IgnoreEnhancements);

            hashCode = hashCode * -1521134295 + EqualityComparer <int[]> .Default.GetHashCode(IgnoreBuffs);

            hashCode = hashCode * -1521134295 + SkipMax.GetHashCode();
            hashCode = hashCode * -1521134295 + DisplayLocation.GetHashCode();
            hashCode = hashCode * -1521134295 + MutuallyExclusiveAuto.GetHashCode();
            hashCode = hashCode * -1521134295 + MutuallyExclusiveIgnore.GetHashCode();
            hashCode = hashCode * -1521134295 + AbsorbSummonEffects.GetHashCode();
            hashCode = hashCode * -1521134295 + AbsorbSummonAttributes.GetHashCode();
            hashCode = hashCode * -1521134295 + ShowSummonAnyway.GetHashCode();
            hashCode = hashCode * -1521134295 + NeverAutoUpdate.GetHashCode();
            hashCode = hashCode * -1521134295 + NeverAutoUpdateRequirements.GetHashCode();
            hashCode = hashCode * -1521134295 + IncludeFlag.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ForcedClass);

            hashCode = hashCode * -1521134295 + SortOverride.GetHashCode();
            hashCode = hashCode * -1521134295 + BoostBoostable.GetHashCode();
            hashCode = hashCode * -1521134295 + BoostUsePlayerLevel.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Effect[]> .Default.GetHashCode(Effects);

            hashCode = hashCode * -1521134295 + HiddenPower.GetHashCode();
            return(hashCode);
        }
예제 #27
0
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     return(this.Center.GetHashCode() ^ 1 + Radius.GetHashCode());
 }
예제 #28
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 (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 (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 (Lon != null)
         {
             hashCode = hashCode * 59 + Lon.GetHashCode();
         }
         if (Lat != null)
         {
             hashCode = hashCode * 59 + Lat.GetHashCode();
         }
         if (Z != null)
         {
             hashCode = hashCode * 59 + Z.GetHashCode();
         }
         if (Radius != null)
         {
             hashCode = hashCode * 59 + Radius.GetHashCode();
         }
         if (RadiusArray != null)
         {
             hashCode = hashCode * 59 + RadiusArray.GetHashCode();
         }
         if (Below != null)
         {
             hashCode = hashCode * 59 + Below.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 (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 (ShowLegend != null)
         {
             hashCode = hashCode * 59 + ShowLegend.GetHashCode();
         }
         if (ZAuto != null)
         {
             hashCode = hashCode * 59 + ZAuto.GetHashCode();
         }
         if (ZMin != null)
         {
             hashCode = hashCode * 59 + ZMin.GetHashCode();
         }
         if (ZMax != null)
         {
             hashCode = hashCode * 59 + ZMax.GetHashCode();
         }
         if (ZMid != null)
         {
             hashCode = hashCode * 59 + ZMid.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 (ShowScale != null)
         {
             hashCode = hashCode * 59 + ShowScale.GetHashCode();
         }
         if (ColorBar != null)
         {
             hashCode = hashCode * 59 + ColorBar.GetHashCode();
         }
         if (ColorAxis != null)
         {
             hashCode = hashCode * 59 + ColorAxis.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 (LonSrc != null)
         {
             hashCode = hashCode * 59 + LonSrc.GetHashCode();
         }
         if (LatSrc != null)
         {
             hashCode = hashCode * 59 + LatSrc.GetHashCode();
         }
         if (ZSrc != null)
         {
             hashCode = hashCode * 59 + ZSrc.GetHashCode();
         }
         if (RadiusSrc != null)
         {
             hashCode = hashCode * 59 + RadiusSrc.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);
     }
 }
 /// <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()
 {
     return(Radius.GetHashCode() ^ Azimuth.GetHashCode());
 }
예제 #30
0
 /// <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()
 {
     return(Radius.GetHashCode() ^ Rotation.GetHashCode());
 }