title: regarding the use of new Constraint in c#
body: <p>i never use new Constraint because the use is not clear to me. here i found one sample but i just do not understand the use. here is the code</p>
  
  <pre><code>class ItemFactory&lt;T&gt; where T : new()
  {
      public T GetNewItem()
      {
          return new T();
      }
  }
  
  public class ItemFactory2&lt;T&gt; where T : IComparable, new()
  
  {
  }
  </code></pre>
  
  <p>so anyone please make me understand the use of new Constraint with small &amp; easy sample for real world use. thanks</p>