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());
 }
예제 #2
0
 public override bool Equals(object obj) => FastEasyHash <HashedWithILEmit> .Equals(this, obj);
예제 #3
0
 public override int GetHashCode() => FastEasyHash <HashedWithILEmit> .GetHashCode(this);
예제 #4
0
 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);