title: Generating hashcode without using Double.GetHashCode()
body: <p>I need to generate hashcode out of following struct:</p>
  <pre><code>    public struct Vector2
      {
          private double x;
          private double y;
  
          public Vector2(double x, double y)
          {
              this.x = x;
              this.y = y;
          }
  
          public override Int32 GetHashCode()
          {
              return ????;
          }
      }
  </code></pre>
  <p>Now the issue is, I cannot use:</p>
  <pre><code>double.GetHashCode() or int.GetHashCode()
  
  x.GetHashCode() ^ (y.GetHashCode() &lt;&lt; 2);
  </code></pre>
  <p>because we convert C# code into JavaScript using Bridge.Net and this code decreases performance drastically.</p>