What is the best way to implement this composite GetHashCode()
Like described by Jon Skeet in this SO answer, it is best practice to pick some prime numbers and multiply these with the single hash codes, then sum everything up. public int GetHashCode() { unchecked { int hash = 17; // Maybe nullity checks, if these are objects not primitives! hash = hash * 23 … Read more