title: How to hash an int[] in c#
body: <p>I'm trying to think of a way to override GetHashCode() when called from a Vector2[]. This code produces non unique hashes for objects that I know to be equal: I pass the following class the same rectangle, and different hash codes are generated. </p>
  
  <pre><code>public Shape(Rectangle r)
          {
              edges = new Vector2[4];
              edges[0] = new Vector2(0, 0);
              edges[1] = new Vector2(r.Width, 0);
              edges[2] = new Vector2(r.Width, r.Height);
              edges[3] = new Vector2(0, r.Height);
              Console.Write(edges.GetHashCode() + "\n");
              Position = new Vector2(r.X, r.Y);                
          }
  </code></pre>
  
  <p>A Vector2 array is just bunch of ints. How can I create a unique hash for a list of ints? </p>