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
Source : BssomFloat.cs
with MIT License
from 1996v
with MIT License
from 1996v
public override int GetHashCode()
{
switch (FloatType)
{
case BssomFloatType.Single:
return GetFloat32().GetHashCode();
default://case BssomFloatType.Double:
return GetFloat64().GetHashCode();
}
}
19
Source : SimpleJSON.cs
with MIT License
from 71
with MIT License
from 71
public override int GetHashCode()
{
return m_Data.GetHashCode();
}
19
Source : Vector2d.cs
with MIT License
from 734843327
with MIT License
from 734843327
public override int GetHashCode()
{
return this.x.GetHashCode() ^ this.y.GetHashCode() << 2;
}
19
Source : Score.cs
with GNU General Public License v3.0
from Acumatica
with GNU General Public License v3.0
from Acumatica
public override int GetHashCode() => Value.GetHashCode();
19
Source : Vector2d.cs
with MIT License
from alen-smajic
with MIT License
from alen-smajic
public override int GetHashCode()
{
return this.x.GetHashCode() ^ this.y.GetHashCode() << 2;
}
19
Source : OxyPen.cs
with MIT License
from AlexGyver
with MIT License
from 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
Source : Size.cs
with MIT License
from alexleen
with MIT License
from alexleen
public override int GetHashCode()
{
unchecked
{
int hashCode = Value.GetHashCode();
hashCode = (hashCode * 397) ^ Max.GetHashCode();
hashCode = (hashCode * 397) ^ Min.GetHashCode();
return hashCode;
}
}
19
Source : Interval.cs
with Apache License 2.0
from alexyakunin
with Apache License 2.0
from alexyakunin
public override int GetHashCode() => unchecked ((Start.GetHashCode() * 397) ^ End.GetHashCode());
19
Source : TimeInterval.cs
with MIT License
from AndreyAkinshin
with MIT License
from AndreyAkinshin
public override int GetHashCode() => Nanoseconds.GetHashCode();
19
Source : ConfidenceInterval.cs
with MIT License
from AndreyAkinshin
with MIT License
from 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
Source : Frequency.cs
with MIT License
from AndreyAkinshin
with MIT License
from AndreyAkinshin
public override int GetHashCode() => Hertz.GetHashCode();
19
Source : RelativeThreshold.cs
with MIT License
from AndreyAkinshin
with MIT License
from AndreyAkinshin
public override int GetHashCode() => ratio.GetHashCode();
19
Source : AbsoluteEqualityComparer.cs
with MIT License
from AndreyAkinshin
with MIT License
from AndreyAkinshin
public int GetHashCode(double x) => x.GetHashCode();
19
Source : FontKey.cs
with MIT License
from AVPolyakov
with MIT License
from 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
Source : ImageGraphics.cs
with MIT License
from AVPolyakov
with MIT License
from 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
Source : LatLng.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode() => m_Lat.GetHashCode() ^ m_Lng.GetHashCode();
19
Source : PolarPoint.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode()
{
return m_R.GetHashCode() + m_Theta.GetHashCode();
}
19
Source : IndexingPrimitives.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode() => Value.GetHashCode() ^ Bookmark.GetHashCode();
19
Source : SimpleJson.cs
with MIT License
from bbepis
with MIT License
from bbepis
public override int GetHashCode()
{
return m_Data.GetHashCode();
}
19
Source : LvcPointD.cs
with MIT License
from beto-rodriguez
with MIT License
from beto-rodriguez
public override int GetHashCode()
{
var hashCode = 1861411795;
hashCode = hashCode * -1521134295 + X.GetHashCode();
hashCode = hashCode * -1521134295 + Y.GetHashCode();
return hashCode;
}
19
Source : PositionObject.cs
with MIT License
from Binwell
with MIT License
from Binwell
public override int GetHashCode()
{
unchecked
{
var hashCode = Lareplacedude.GetHashCode();
hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
return hashCode;
}
}
19
Source : CssValue.cs
with MIT License
from BlazorExtensions
with MIT License
from 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
Source : Struct.cs
with MIT License
from bluexo
with MIT License
from 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
Source : Wrappers.cs
with MIT License
from bluexo
with MIT License
from bluexo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Value != 0D) hash ^= Value.GetHashCode();
return hash;
}
19
Source : JsonToken.cs
with MIT License
from bluexo
with MIT License
from 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
Source : IRecognize.cs
with MIT License
from BotBuilderCommunity
with MIT License
from BotBuilderCommunity
public override int GetHashCode()
{
return Start.GetHashCode() ^ Length.GetHashCode() ^ Confidence.GetHashCode() ^ Value.GetHashCode();
}
19
Source : Vector.cs
with MIT License
from bstollnitz
with MIT License
from bstollnitz
public override int GetHashCode()
{
return this.x.GetHashCode() ^ this.y.GetHashCode();
}
19
Source : Matrix.cs
with MIT License
from bubibubi
with MIT License
from 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
Source : Point.cs
with MIT License
from bubibubi
with MIT License
from bubibubi
public override int GetHashCode()
{
unchecked
{
return (X.GetHashCode() * 397) ^ Y.GetHashCode();
}
}
19
Source : Vector3D.cs
with MIT License
from CalciumFramework
with MIT License
from CalciumFramework
public override int GetHashCode()
{
return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode();
}
19
Source : ObscuredDouble.cs
with GNU General Public License v3.0
from cc004
with GNU General Public License v3.0
from cc004
public override int GetHashCode() => this.InternalDecrypt().GetHashCode();
19
Source : IMark.cs
with Apache License 2.0
from cdy816
with Apache License 2.0
from cdy816
public override int GetHashCode()
{
if (IsEmpty)
return 0;
return xMin.GetHashCode() ^
width.GetHashCode() ^
yMin.GetHashCode() ^
height.GetHashCode();
}
19
Source : Point.cs
with MIT License
from Chaosed0
with MIT License
from Chaosed0
public override int GetHashCode()
{
int hash = 19;
hash = hash * 31 + x.GetHashCode();
hash = hash * 31 + y.GetHashCode();
return hash;
}
19
Source : NumberData.cs
with GNU General Public License v3.0
from CheezLang
with GNU General Public License v3.0
from 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
Source : MatrixD.cs
with MIT License
from chillersanim
with MIT License
from 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
Source : Vector2d.cs
with MIT License
from chillersanim
with MIT License
from 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
Source : Vector4d.cs
with MIT License
from chillersanim
with MIT License
from 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
Source : Vector3d.cs
with MIT License
from chillersanim
with MIT License
from 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
Source : ClipEditor.cs
with MIT License
from chstetco
with MIT License
from chstetco
public override int GetHashCode()
{
return HashUtility.CombineHash(
position.GetHashCode(),
startTime.GetHashCode(),
endTime.GetHashCode()
);
}
19
Source : MarkerEditor.cs
with MIT License
from chstetco
with MIT License
from chstetco
public override int GetHashCode()
{
return HashUtility.CombineHash(
markerRegion.GetHashCode(),
timelineRegion.GetHashCode(),
startTime.GetHashCode(),
endTime.GetHashCode()
);
}
19
Source : TimelineMarkerGUI.cs
with MIT License
from chstetco
with MIT License
from chstetco
int ComputeDirtyHash()
{
return time.GetHashCode();
}
19
Source : TimelineClip.cs
with MIT License
from chstetco
with MIT License
from 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
Source : TrackAsset.cs
with MIT License
from chstetco
with MIT License
from 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
Source : Location.cs
with Microsoft Public License
from ClemensFischer
with Microsoft Public License
from ClemensFischer
public override int GetHashCode()
{
return Lareplacedude.GetHashCode() ^ Longitude.GetHashCode();
}
19
Source : Point.UWP.cs
with Microsoft Public License
from ClemensFischer
with Microsoft Public License
from ClemensFischer
public override int GetHashCode()
{
return X.GetHashCode() ^ Y.GetHashCode();
}
19
Source : ColorProfile.cs
with Apache License 2.0
from codaris
with Apache License 2.0
from codaris
public override int GetHashCode()
{
return RedMultiplier.GetHashCode() ^ GreenMultiplier.GetHashCode() ^ BlueMultiplier.GetHashCode();
}
19
Source : Transform.cs
with MIT License
from codefoco
with MIT License
from 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
Source : BoundingBox.cs
with MIT License
from codefoco
with MIT License
from 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
Source : ContactPoint.cs
with MIT License
from codefoco
with MIT License
from 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
Source : Vect.cs
with MIT License
from codefoco
with MIT License
from 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