public override int GetHashCode() { unchecked { // Choose large primes to avoid hashing collisions const int HashingBase = (int)2166136261; const int HashingMultiplier = 16777619; int hash = HashingBase; hash = (hash * HashingMultiplier) ^ Prop0.GetHashCode(); hash = (hash * HashingMultiplier) ^ (!object.ReferenceEquals(null, Prop1) ? Prop1.GetHashCode() : 0); return(hash); } }
public override int GetHashCode() { unchecked { // Choose large primes to avoid hashing collisions const int HashingBase = (int)2166136261; const int HashingMultiplier = 16777619; int hash = HashingBase; hash = (hash * HashingMultiplier) ^ Prop0.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop1.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop2.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop3.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop4.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop5.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop6.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop7.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop8.GetHashCode(); hash = (hash * HashingMultiplier) ^ Prop9.GetHashCode(); return(hash); } }