/// <inheritdoc/> public override int GetHashCode() { int hash = HashHelpers.Combine(this.R.GetHashCode(), this.G.GetHashCode()); hash = HashHelpers.Combine(hash, this.B.GetHashCode()); return(HashHelpers.Combine(hash, this.A.GetHashCode())); }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>The hash code.</returns> public override readonly int GetHashCode() { int hash = this.X.GetHashCode(); hash = HashHelpers.Combine(hash, this.Y.GetHashCode()); return(hash); }
public int GetGetBinderEquivalenceHash() { int hash = _callingContext?.GetHashCode() ?? 0; hash = HashHelpers.Combine(hash, Name.GetHashCode()); return(hash); }
/// <inheritdoc/> public override int GetHashCode() { int hash = this.X.GetHashCode(); hash = HashHelpers.Combine(hash, this.Y.GetHashCode()); return(HashHelpers.Combine(hash, this.Z.GetHashCode())); }
/// <inheritdoc /> public override int GetHashCode() { #if NO_HASHCODE return(HashHelpers.Combine(PageNumber.GetHashCode(), TotalPages.GetHashCode())); #else return(HashCode.Combine(PageNumber, TotalPages)); #endif }
/// <inheritdoc /> public override int GetHashCode() { #if NO_HASHCODE return(HashHelpers.Combine(_offset.GetHashCode(), _length.GetHashCode())); #else return(HashCode.Combine(_offset, _length)); #endif }
/// <inheritdoc /> public override int GetHashCode() { #if NO_HASHCODE return(HashHelpers.Combine(Width.GetHashCode(), Height.GetHashCode())); #else return(HashCode.Combine(Width, Height)); #endif }
/// <inheritdoc/> public override int GetHashCode() { int hash = this.L.GetHashCode(); hash = HashHelpers.Combine(hash, this.C.GetHashCode()); hash = HashHelpers.Combine(hash, this.H.GetHashCode()); return(HashHelpers.Combine(hash, this.WhitePoint.GetHashCode())); }
/// <summary> /// Gets a hash code for the current object. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { #if NO_HASHCODE return(HashHelpers.Combine((C << 16 | M).GetHashCode(), (Y << 16 | K).GetHashCode())); #else return(HashCode.Combine(C, M, Y, K)); #endif }
/// <inheritdoc /> public override int GetHashCode() { #if NO_HASHCODE return(HashHelpers.Combine(X.GetHashCode(), Y.GetHashCode())); #else return(HashCode.Combine(X, Y)); #endif }
/// <summary> /// Gets a hash code for the current object. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { #if NO_HASHCODE return(HashHelpers.Combine((B << 16 | G).GetHashCode(), (R << 16 | A).GetHashCode())); #else return(HashCode.Combine(B, G, R, A)); #endif }
/// <inheritdoc /> public override int GetHashCode() { #if NO_HASHCODE return(HashHelpers.Combine(Numerator.GetHashCode(), Denominator.GetHashCode())); #else return(HashCode.Combine(Numerator, Denominator)); #endif }
public int GetGetBinderEquivalenceHash() { int hash = _callingContext?.GetHashCode() ?? 0; hash = HashHelpers.Combine(hash, (int)_flags); hash = BinderHelper.AddArgHashes(hash, _argumentInfo); return(hash); }
public ArrayOfType(Type[] t) { this.Array = t; this.HashCode = 0; for (int i = 0; i < t.Length; i++) { this.HashCode = HashHelpers.Combine(this.HashCode, t[i].GetHashCode()); } }
/// <summary> /// Gets a hash code for the current object. /// </summary> /// <returns>A hash code.</returns> public override int GetHashCode() => HashHelpers.Combine( #if NET5_0 || NETSTANDARD2_1 Name?.GetHashCode(StringComparison.Ordinal) ?? 0, #else Name?.GetHashCode() ?? 0, #endif Type?.GetHashCode() ?? 0 );
private int GetHashCode(Point point) { int num = point.X; int hashCode1 = num.GetHashCode(); num = point.Y; int hashCode2 = num.GetHashCode(); return(HashHelpers.Combine(hashCode1, hashCode2)); }
/// <inheritdoc/> public override int GetHashCode() { return(HashHelpers.Combine( this.DCTEncodeVersion.GetHashCode(), HashHelpers.Combine( this.APP14Flags0.GetHashCode(), HashHelpers.Combine( this.APP14Flags1.GetHashCode(), this.ColorTransform.GetHashCode())))); }
/// <inheritdoc/> public override int GetHashCode() { return(HashHelpers.Combine( this.MajorVersion.GetHashCode(), HashHelpers.Combine( this.MinorVersion.GetHashCode(), HashHelpers.Combine( this.DensityUnits.GetHashCode(), HashHelpers.Combine(this.XDensity, this.YDensity))))); }
public int GetGetBinderEquivalenceHash() { int hash = _callingContext?.GetHashCode() ?? 0; hash = HashHelpers.Combine(hash, (int)Operation); if (IsChecked) { hash = HashHelpers.Combine(hash, 1); } hash = BinderHelper.AddArgHashes(hash, _argumentInfo); return(hash); }
public int GetGetBinderEquivalenceHash() { int hash = _callingContext?.GetHashCode() ?? 0; hash = HashHelpers.Combine(hash, (int)ConversionKind); if (IsChecked) { hash = HashHelpers.Combine(hash, 1); } hash = HashHelpers.Combine(hash, Type.GetHashCode()); return(hash); }
public int GetGetBinderEquivalenceHash() { int hash = _callingContext?.GetHashCode() ?? 0; if (ResultIndexed) { hash = HashHelpers.Combine(hash, 1); } hash = HashHelpers.Combine(hash, Name.GetHashCode()); hash = BinderHelper.AddArgHashes(hash, _argumentInfo); return(hash); }
public int GetHashCode(string assemblyQualifiedTypeName) { // non-allocating GetHashCode that hashes the type name portion of the string ReadOnlySpan <char> typeSpan = assemblyQualifiedTypeName.AsSpan().TrimStart(s_whiteSpaceChars); ReadOnlySpan <char> typeName = ReadTypeName(typeSpan); int hashCode = 0; for (int i = 0; i < typeName.Length; i++) { hashCode = HashHelpers.Combine(hashCode, typeName[i].GetHashCode()); } return(hashCode); }
public override int GetHashCode() { // Three cases: // 1. We don't have a name. All relevant data, including this fact, is in the remaining fields. // 2. We have a known name. The name will be the same instance of any other with the same // knownColor value, so we can ignore it for hashing. Note this also hashes different to // an unnamed color with the same ARGB value. // 3. Have an unknown name. Will differ from other unknown-named colors only by name, so we // can usefully use the names hash code alone. if (name != null & !IsKnownColor) { return(name.GetHashCode()); } return(HashHelpers.Combine( HashHelpers.Combine(value.GetHashCode(), state.GetHashCode()), knownColor.GetHashCode())); }
public override int GetHashCode() => HashHelpers.Combine(Width.GetHashCode(), Height.GetHashCode());
public override int GetHashCode() => HashHelpers.Combine(this.X.GetHashCode(), this.Y.GetHashCode());
public int GetHashCode(ParameterInfo obj) { return(HashHelpers.Combine(obj.Position.GetHashCode(), obj.Member.GetHashCode())); }
/// <summary> /// Gets a hash code for the instance. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() => HashHelpers.Combine( FastEqualityComparer <TNonCached> .Default.GetHashCode(NonCached), FastEqualityComparer <TCached> .Default.GetHashCode(Cached) );
public override int GetHashCode() => HashHelpers.Combine(HashHelpers.Combine(HashHelpers.Combine(X, Y), Width), Height);
public override int GetHashCode() => HashHelpers.Combine(Name.GetHashCode(), Version.GetHashCode());
public override int GetHashCode() => HashHelpers.Combine(X.GetHashCode(), Y.GetHashCode());