static HashedWithComplexEasyHashRegistration() { FastEasyHash <HashedWithComplexEasyHashRegistration> .Register(r => r .WithPrimes(17, 23) .Skip(f => f.Number) .For(f => f.Numbers, (ob, hash) => ob.Numbers.Aggregate(hash, (i, i1) => (i * 23) ^ i1.GetHashCode())) .For(f => f.Text, (ob, hash) => (hash * 23) ^ ob.Text.GetHashCode()) .ExcludeCollectionItems()); }
public override bool Equals(object obj) => FastEasyHash <HashedWithILEmit> .Equals(this, obj);
public override int GetHashCode() => FastEasyHash <HashedWithILEmit> .GetHashCode(this);
public static bool Equals(T obj, T other) => FastEasyHash <T> .Equals(obj, other);
public override bool Equals(object obj) => FastEasyHash <HashedWithComplexEasyHashRegistration> .Equals(this, obj);
public override int GetHashCode() => FastEasyHash <HashedWithComplexEasyHashRegistration> .GetHashCode(this);