public override int GetHashCode() { HashCode hash = new HashCode(); hash.append(width); hash.append(height); return hash.hashCode(); }
public void ShouldGiveHashValueForEachArrayElement() { var hashCode = new HashCode(); hashCode.Accumulate(new[] { 1, 2, 3 }); Assert.That(hashCode.Value, Is.EqualTo(HashCodeValue.Of(1, 2, 3))); }
public void ShouldGiveHashValueForOneReference() { var hashCode = new HashCode(); hashCode.Accumulate("dummy"); Assert.That(hashCode.Value, Is.EqualTo(HashCodeValue.Of("dummy"))); }
public void ShouldGiveHashValueForOnePrimitive() { var hashCode = new HashCode(); hashCode.Accumulate(1); Assert.That(hashCode.Value, Is.EqualTo(HashCodeValue.Of(1))); }
public void ShouldGiveHashValueWhenAReferenceValueIsNull() { var hashCode = new HashCode(); Assert.That(() => hashCode.Accumulate(null), Throws.Nothing); Assert.That(hashCode.Value, Is.EqualTo(HashCodeValue.OfNull())); }
public override int GetHashCode() { return(HashCode.Combine(fontFamily, fontSize, isBold)); }
public HashCode GenerateHashCodeForCurrent( HashCode current ){ }
public override int GetHashCode() { return(HashCode.Combine(Value, Errors)); }
/// <inheritdoc /> public override int GetHashCode() => HashCode.Combine(this.LeftValue, this.RightValue);
public override int GetHashCode() { return(HashCode.Combine(Original, Romanised)); }
public override void AddValueInsensitiveHashCode(ref HashCode hashCode) { hashCode.Add(typeof(SortExpression)); hashCode.Add(Parameter); }
public override int GetHashCode() => HashCode.Combine(Text, Indexes);
public override int GetHashCode() => HashCode.Combine(Version, Type, TypeIdentifier);
public override int GetHashCode() { return(HashCode.Combine(TopicId, Name)); }
public override int GetHashCode() { return(HashCode.Combine(EmployeeId, DepartmentId)); }
public override int GetHashCode() => HashCode.Combine(this.R, this.G, this.B, this.A);
/// <inheritdoc /> public override int GetHashCode() { return(HashCode.Combine(this.Result, (int)this.Reason)); }
public override int GetHashCode() { return(HashCode.Combine(Line, Col)); }
/// <inheritdoc /> public override int GetHashCode() => HashCode.Combine(this.Value);
public override int GetHashCode() { return(HashCode.Combine(this.Id, this.FmdId)); }
public override int GetHashCode() { return(HashCode.Combine(Type, Attributes)); }
protected override int CalculateHashCode() { return(HashCode.Combine(_id, _title, _description, _genreId, _image, _duration, _trailer, _rating)); }
// TODO generate GetHashCode() public override int GetHashCode() { return(HashCode.Combine(Seed, Name, Ordinal)); }
public override int GetHashCode() { return(HashCode.Combine(X, Y)); }
public override int GetHashCode() { return(HashCode.Combine(AnonScoreTarget, FeeRateMedianTimeFrameHours)); }
public override int GetHashCode() { return(HashCode.Combine(knoopID, punt)); }
/// <summary> /// Gets the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override int GetHashCode() { return(HashCode.Combine(name, system, maxSign)); }
public override int GetHashCode() { return(HashCode.Combine(Nickname)); }
public override int GetHashCode() => HashCode.From(Color, Selected);
public override int GetHashCode() { return(HashCode.Combine(CorrelationId)); }
public override int GetHashCode() { return(HashCode.Combine(Name, CourseId)); }
public int GetHashCode([DisallowNull] ICorrelatedModel obj) { return(HashCode.Combine(obj.CorrelationId)); }
public override int GetHashCode() => HashCode.Combine(TraceId, SpanId, TraceFlags, TraceState);
public void ShouldGiveSeedValueIfNotHashingAnything() { var hashCode = new HashCode(); Assert.That(hashCode.Value, Is.EqualTo(HashCode.Seed)); }
public override int GetHashCode() { return(HashCode.Combine("Triangle", Material, Transform)); }
public HashCode GenerateHashCodeForEnhance( RGBA rgba, Long zoom, HashCode parent ){ }
public override int GetHashCode() => HashCode.Combine(base.GetHashCode(), Value);
public AlgorithmZoom( HashCode code){ iPixel R, D, B; // right, diagonal, bottom Long }
public override int GetHashCode() => HashCode.For(Type, Mix, GateDuration, Gating);