title: What is the best way to implement GetHashCode() for class with lots of properties?
body: <p>I have a class that has lots of properties that I am implementing <code>IEquitable&lt;T&gt;</code> on. I have found multiple examples on how to do GetHashCode() for small amount of properties.   </p>
  
  <p><a href="https://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode">Here is one example</a></p>
  
  <pre><code>public override int GetHashCode()
  {
      unchecked // Overflow is fine, just wrap
      {
          int hash = 17;
          // Suitable nullity checks etc, of course :)
          hash = hash * 23 + field1.GetHashCode();
          hash = hash * 23 + field2.GetHashCode();
          hash = hash * 23 + field3.GetHashCode();
          return hash;
      }
  }
  </code></pre>
  
  <p>How should I go around when I have hundreds of properties on object? </p>