title: What is the difference between generic type constraint method and method with generic parameter
body: <p>Hi I would like to ask what is the difference and what are the benefits of one approach and the another when considering generic type constraint method and method with generic parameter. For example:</p>
  
  <pre><code>public int Foo(IComparable[] array)
  {
  }
  
  public int Foo&lt;T&gt;(T[] array) where T : IComparable
  {
  }
  </code></pre>