public override int GetHashCode() { unchecked { return(((Prop1 != null ? Prop1.GetHashCode() : 0) * 397) ^ (Prop2 != null ? Prop2.GetHashCode() : 0)); } }
public override int GetHashCode() { var result = (Prop1 != null ? Prop1.GetHashCode() : 0); result = 31 * result + Prop2; return(result); }
public override int GetHashCode() { unchecked { int hashCode = (Prop1 != null ? Prop1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Prop2 != null ? Prop2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EnumArray != null ? EnumArray.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = 17; hash = hash * 23 + Prop1.GetHashCode(); hash = hash * 23 + Prop2; return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (Prop1 != null ? Prop1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Prop2; hashCode = (hashCode * 397) ^ Prop3.GetHashCode(); return(hashCode); } }
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); hash = (hash * HashingMultiplier) ^ Prop2.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { uint code = 0; if (Prop1 != null) { code ^= (uint)Prop1.GetHashCode(); } code = (code << 16) | (code >> 16); if (Prop2 != null) { code ^= (uint)Prop2.GetHashCode(); } return((int)code); } }
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); } }