Here are the examples of the csharp api double.GetHashCode() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
610 Examples
19
View Source File : BssomFloat.cs
License : MIT License
Project Creator : 1996v
License : MIT License
Project Creator : 1996v
public override int GetHashCode()
{
switch (FloatType)
{
case BssomFloatType.Single:
return GetFloat32().GetHashCode();
default://case BssomFloatType.Double:
return GetFloat64().GetHashCode();
}
}
19
View Source File : SimpleJSON.cs
License : MIT License
Project Creator : 71
License : MIT License
Project Creator : 71
public override int GetHashCode()
{
return m_Data.GetHashCode();
}
19
View Source File : Vector2d.cs
License : MIT License
Project Creator : 734843327
License : MIT License
Project Creator : 734843327
public override int GetHashCode()
{
return this.x.GetHashCode() ^ this.y.GetHashCode() << 2;
}
19
View Source File : Score.cs
License : GNU General Public License v3.0
Project Creator : Acumatica
License : GNU General Public License v3.0
Project Creator : Acumatica
public override int GetHashCode() => Value.GetHashCode();
19
View Source File : Vector2d.cs
License : MIT License
Project Creator : alen-smajic
License : MIT License
Project Creator : alen-smajic
public override int GetHashCode()
{
return this.x.GetHashCode() ^ this.y.GetHashCode() << 2;
}
19
View Source File : OxyPen.cs
License : MIT License
Project Creator : AlexGyver
License : MIT License
Project Creator : AlexGyver
public override int GetHashCode()
{
unchecked
{
int result = this.Color.GetHashCode();
result = (result * 397) ^ this.Thickness.GetHashCode();
result = (result * 397) ^ this.LineStyle.GetHashCode();
result = (result * 397) ^ this.LineJoin.GetHashCode();
return result;
}
}
19
View Source File : Size.cs
License : MIT License
Project Creator : alexleen
License : MIT License
Project Creator : alexleen
public override int GetHashCode()
{
unchecked
{
int hashCode = Value.GetHashCode();
hashCode = (hashCode * 397) ^ Max.GetHashCode();
hashCode = (hashCode * 397) ^ Min.GetHashCode();
return hashCode;
}
}
19
View Source File : Interval.cs
License : Apache License 2.0
Project Creator : alexyakunin
License : Apache License 2.0
Project Creator : alexyakunin
public override int GetHashCode() => unchecked ((Start.GetHashCode() * 397) ^ End.GetHashCode());
19
View Source File : TimeInterval.cs
License : MIT License
Project Creator : AndreyAkinshin
License : MIT License
Project Creator : AndreyAkinshin
public override int GetHashCode() => Nanoseconds.GetHashCode();
19
View Source File : ConfidenceInterval.cs
License : MIT License
Project Creator : AndreyAkinshin
License : MIT License
Project Creator : AndreyAkinshin
public override int GetHashCode()
{
unchecked
{
int hashCode = Estimation.GetHashCode();
hashCode = (hashCode * 397) ^ Lower.GetHashCode();
hashCode = (hashCode * 397) ^ Upper.GetHashCode();
hashCode = (hashCode * 397) ^ ConfidenceLevel.GetHashCode();
return hashCode;
}
}
19
View Source File : Frequency.cs
License : MIT License
Project Creator : AndreyAkinshin
License : MIT License
Project Creator : AndreyAkinshin
public override int GetHashCode() => Hertz.GetHashCode();
19
View Source File : RelativeThreshold.cs
License : MIT License
Project Creator : AndreyAkinshin
License : MIT License
Project Creator : AndreyAkinshin
public override int GetHashCode() => ratio.GetHashCode();
19
View Source File : AbsoluteEqualityComparer.cs
License : MIT License
Project Creator : AndreyAkinshin
License : MIT License
Project Creator : AndreyAkinshin
public int GetHashCode(double x) => x.GetHashCode();
19
View Source File : FontKey.cs
License : MIT License
Project Creator : AVPolyakov
License : MIT License
Project Creator : AVPolyakov
public override int GetHashCode()
{
unchecked
{
var hashCode = Name != null ? Name.GetHashCode() : 0;
hashCode = hashCode * 397 ^ Size.GetHashCode();
hashCode = hashCode * 397 ^ (int) Style;
hashCode = hashCode * 397 ^ (int) FontEncoding;
return hashCode;
}
}
19
View Source File : ImageGraphics.cs
License : MIT License
Project Creator : AVPolyakov
License : MIT License
Project Creator : AVPolyakov
public override int GetHashCode()
{
unchecked
{
var hashCode = A.GetHashCode();
hashCode = (hashCode * 397) ^ R.GetHashCode();
hashCode = (hashCode * 397) ^ G.GetHashCode();
hashCode = (hashCode * 397) ^ B.GetHashCode();
return hashCode;
}
}
19
View Source File : LatLng.cs
License : MIT License
Project Creator : azist
License : MIT License
Project Creator : azist
public override int GetHashCode() => m_Lat.GetHashCode() ^ m_Lng.GetHashCode();
19
View Source File : PolarPoint.cs
License : MIT License
Project Creator : azist
License : MIT License
Project Creator : azist
public override int GetHashCode()
{
return m_R.GetHashCode() + m_Theta.GetHashCode();
}
19
View Source File : IndexingPrimitives.cs
License : MIT License
Project Creator : azist
License : MIT License
Project Creator : azist
public override int GetHashCode() => Value.GetHashCode() ^ Bookmark.GetHashCode();
19
View Source File : SimpleJson.cs
License : MIT License
Project Creator : bbepis
License : MIT License
Project Creator : bbepis
public override int GetHashCode()
{
return m_Data.GetHashCode();
}
19
View Source File : LvcPointD.cs
License : MIT License
Project Creator : beto-rodriguez
License : MIT License
Project Creator : beto-rodriguez
public override int GetHashCode()
{
var hashCode = 1861411795;
hashCode = hashCode * -1521134295 + X.GetHashCode();
hashCode = hashCode * -1521134295 + Y.GetHashCode();
return hashCode;
}
19
View Source File : PositionObject.cs
License : MIT License
Project Creator : Binwell
License : MIT License
Project Creator : Binwell
public override int GetHashCode()
{
unchecked
{
var hashCode = Lareplacedude.GetHashCode();
hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
return hashCode;
}
}
19
View Source File : CssValue.cs
License : MIT License
Project Creator : BlazorExtensions
License : MIT License
Project Creator : BlazorExtensions
public override int GetHashCode()
{
if (this.IsDouble)
return this.Double.Value.GetHashCode();
if (this.IsInteger)
return this.Integer.Value.GetHashCode();
if (this.IsBolean)
return this.Bolean.Value.GetHashCode();
return this.String.GetHashCode();
}
19
View Source File : Struct.cs
License : MIT License
Project Creator : bluexo
License : MIT License
Project Creator : bluexo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (kindCase_ == KindOneofCase.NullValue) hash ^= NullValue.GetHashCode();
if (kindCase_ == KindOneofCase.NumberValue) hash ^= NumberValue.GetHashCode();
if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCode();
if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode();
if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCode();
if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode();
hash ^= (int) kindCase_;
return hash;
}
19
View Source File : Wrappers.cs
License : MIT License
Project Creator : bluexo
License : MIT License
Project Creator : bluexo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Value != 0D) hash ^= Value.GetHashCode();
return hash;
}
19
View Source File : JsonToken.cs
License : MIT License
Project Creator : bluexo
License : MIT License
Project Creator : bluexo
public override int GetHashCode()
{
unchecked
{
int hash = 17;
hash = hash * 31 + (int) type;
hash = hash * 31 + stringValue == null ? 0 : stringValue.GetHashCode();
hash = hash * 31 + numberValue.GetHashCode();
return hash;
}
}
19
View Source File : IRecognize.cs
License : MIT License
Project Creator : BotBuilderCommunity
License : MIT License
Project Creator : BotBuilderCommunity
public override int GetHashCode()
{
return Start.GetHashCode() ^ Length.GetHashCode() ^ Confidence.GetHashCode() ^ Value.GetHashCode();
}
19
View Source File : Vector.cs
License : MIT License
Project Creator : bstollnitz
License : MIT License
Project Creator : bstollnitz
public override int GetHashCode()
{
return this.x.GetHashCode() ^ this.y.GetHashCode();
}
19
View Source File : Matrix.cs
License : MIT License
Project Creator : bubibubi
License : MIT License
Project Creator : bubibubi
public override int GetHashCode()
{
unchecked
{
int hashCode = _a.GetHashCode();
hashCode = (hashCode * 397) ^ _b.GetHashCode();
hashCode = (hashCode * 397) ^ _c.GetHashCode();
hashCode = (hashCode * 397) ^ _d.GetHashCode();
hashCode = (hashCode * 397) ^ _e.GetHashCode();
hashCode = (hashCode * 397) ^ _f.GetHashCode();
return hashCode;
}
}
19
View Source File : Point.cs
License : MIT License
Project Creator : bubibubi
License : MIT License
Project Creator : bubibubi
public override int GetHashCode()
{
unchecked
{
return (X.GetHashCode() * 397) ^ Y.GetHashCode();
}
}
19
View Source File : Vector3D.cs
License : MIT License
Project Creator : CalciumFramework
License : MIT License
Project Creator : CalciumFramework
public override int GetHashCode()
{
return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode();
}
19
View Source File : ObscuredDouble.cs
License : GNU General Public License v3.0
Project Creator : cc004
License : GNU General Public License v3.0
Project Creator : cc004
public override int GetHashCode() => this.InternalDecrypt().GetHashCode();
19
View Source File : IMark.cs
License : Apache License 2.0
Project Creator : cdy816
License : Apache License 2.0
Project Creator : cdy816
public override int GetHashCode()
{
if (IsEmpty)
return 0;
return xMin.GetHashCode() ^
width.GetHashCode() ^
yMin.GetHashCode() ^
height.GetHashCode();
}
19
View Source File : Point.cs
License : MIT License
Project Creator : Chaosed0
License : MIT License
Project Creator : Chaosed0
public override int GetHashCode()
{
int hash = 19;
hash = hash * 31 + x.GetHashCode();
hash = hash * 31 + y.GetHashCode();
return hash;
}
19
View Source File : NumberData.cs
License : GNU General Public License v3.0
Project Creator : CheezLang
License : GNU General Public License v3.0
Project Creator : CheezLang
public override int GetHashCode()
{
var hashCode = 1753786285;
hashCode = hashCode * -1521134295 + Type.GetHashCode();
hashCode = hashCode * -1521134295 + EqualityComparer<BigInteger>.Default.GetHashCode(IntValue);
hashCode = hashCode * -1521134295 + DoubleValue.GetHashCode();
return hashCode;
}
19
View Source File : MatrixD.cs
License : MIT License
Project Creator : chillersanim
License : MIT License
Project Creator : chillersanim
[Pure]
[PublicAPI]
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
var hash = (int)2166136261;
for (var i = 0; i < this.Rows; i++)
{
for (var j = 0; j < this.Columns; j++)
{
hash = (hash * 16777619) ^ this.GetAt(i, j).GetHashCode();
}
}
return hash;
}
}
19
View Source File : Vector2d.cs
License : MIT License
Project Creator : chillersanim
License : MIT License
Project Creator : chillersanim
[PublicAPI]
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hash = (int)2166136261;
hash = (hash * 16777619) ^ this.X.GetHashCode();
hash = (hash * 16777619) ^ this.Y.GetHashCode();
return hash;
}
}
19
View Source File : Vector4d.cs
License : MIT License
Project Creator : chillersanim
License : MIT License
Project Creator : chillersanim
[PublicAPI]
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hash = (int)2166136261;
hash = (hash * 16777619) ^ this.X.GetHashCode();
hash = (hash * 16777619) ^ this.Y.GetHashCode();
hash = (hash * 16777619) ^ this.Z.GetHashCode();
hash = (hash * 16777619) ^ this.W.GetHashCode();
return hash;
}
}
19
View Source File : Vector3d.cs
License : MIT License
Project Creator : chillersanim
License : MIT License
Project Creator : chillersanim
[PublicAPI]
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hash = (int)2166136261;
hash = (hash * 16777619) ^ this.X.GetHashCode();
hash = (hash * 16777619) ^ this.Y.GetHashCode();
hash = (hash * 16777619) ^ this.Z.GetHashCode();
return hash;
}
}
19
View Source File : ClipEditor.cs
License : MIT License
Project Creator : chstetco
License : MIT License
Project Creator : chstetco
public override int GetHashCode()
{
return HashUtility.CombineHash(
position.GetHashCode(),
startTime.GetHashCode(),
endTime.GetHashCode()
);
}
19
View Source File : MarkerEditor.cs
License : MIT License
Project Creator : chstetco
License : MIT License
Project Creator : chstetco
public override int GetHashCode()
{
return HashUtility.CombineHash(
markerRegion.GetHashCode(),
timelineRegion.GetHashCode(),
startTime.GetHashCode(),
endTime.GetHashCode()
);
}
19
View Source File : TimelineMarkerGUI.cs
License : MIT License
Project Creator : chstetco
License : MIT License
Project Creator : chstetco
int ComputeDirtyHash()
{
return time.GetHashCode();
}
19
View Source File : TimelineClip.cs
License : MIT License
Project Creator : chstetco
License : MIT License
Project Creator : chstetco
internal int Hash()
{
return HashUtility.CombineHash(m_Start.GetHashCode(),
m_Duration.GetHashCode(),
m_TimeScale.GetHashCode(),
m_ClipIn.GetHashCode(),
((int)m_PreExtrapolationMode).GetHashCode(),
((int)m_PostExtrapolationMode).GetHashCode());
}
19
View Source File : TrackAsset.cs
License : MIT License
Project Creator : chstetco
License : MIT License
Project Creator : chstetco
int GetTimeRangeHash()
{
double start = double.MaxValue, end = double.MinValue;
foreach (var marker in GetMarkers())
{
if (!(marker is INotification))
{
continue;
}
if (marker.time < start)
start = marker.time;
if (marker.time > end)
end = marker.time;
}
return start.GetHashCode().CombineHash(end.GetHashCode());
}
19
View Source File : Location.cs
License : Microsoft Public License
Project Creator : ClemensFischer
License : Microsoft Public License
Project Creator : ClemensFischer
public override int GetHashCode()
{
return Lareplacedude.GetHashCode() ^ Longitude.GetHashCode();
}
19
View Source File : Point.UWP.cs
License : Microsoft Public License
Project Creator : ClemensFischer
License : Microsoft Public License
Project Creator : ClemensFischer
public override int GetHashCode()
{
return X.GetHashCode() ^ Y.GetHashCode();
}
19
View Source File : ColorProfile.cs
License : Apache License 2.0
Project Creator : codaris
License : Apache License 2.0
Project Creator : codaris
public override int GetHashCode()
{
return RedMultiplier.GetHashCode() ^ GreenMultiplier.GetHashCode() ^ BlueMultiplier.GetHashCode();
}
19
View Source File : Transform.cs
License : MIT License
Project Creator : codefoco
License : MIT License
Project Creator : codefoco
public override int GetHashCode()
{
var hashCode = -884009331;
#pragma warning disable RECS0025 // Non-readonly field referenced in 'GetHashCode()'
hashCode = hashCode * -1521134295 + a.GetHashCode();
hashCode = hashCode * -1521134295 + b.GetHashCode();
hashCode = hashCode * -1521134295 + c.GetHashCode();
hashCode = hashCode * -1521134295 + d.GetHashCode();
hashCode = hashCode * -1521134295 + tx.GetHashCode();
hashCode = hashCode * -1521134295 + ty.GetHashCode();
#pragma warning restore RECS0025 // Non-readonly field referenced in 'GetHashCode()'
return hashCode;
}
19
View Source File : BoundingBox.cs
License : MIT License
Project Creator : codefoco
License : MIT License
Project Creator : codefoco
public override int GetHashCode()
{
var hashCode = -1064806749;
#pragma warning disable RECS0025 // Non-readonly field referenced in 'GetHashCode()'
hashCode = hashCode * -1521134295 + left.GetHashCode();
hashCode = hashCode * -1521134295 + bottom.GetHashCode();
hashCode = hashCode * -1521134295 + right.GetHashCode();
hashCode = hashCode * -1521134295 + top.GetHashCode();
#pragma warning restore RECS0025 // Non-readonly field referenced in 'GetHashCode()'
return hashCode;
}
19
View Source File : ContactPoint.cs
License : MIT License
Project Creator : codefoco
License : MIT License
Project Creator : codefoco
public override int GetHashCode()
{
var hashCode = -1285340573;
hashCode = hashCode * -1521134295 + pointA.GetHashCode();
hashCode = hashCode * -1521134295 + pointB.GetHashCode();
hashCode = hashCode * -1521134295 + distance.GetHashCode();
return hashCode;
}
19
View Source File : Vect.cs
License : MIT License
Project Creator : codefoco
License : MIT License
Project Creator : codefoco
public override int GetHashCode()
{
#pragma warning disable RECS0025 // Non-readonly field referenced in 'GetHashCode()'
return (x.GetHashCode() << 16) ^ y.GetHashCode();
#pragma warning restore RECS0025 // Non-readonly field referenced in 'GetHashCode()'
}
See More Examples