title: How to initialize generic parameter type T?
body: <p>Simple question:<br>
  If you have a <code>string x</code>, to initialize it you simple do one of the following:  </p>
  
  <pre><code>string x = String.Empty;  
  </code></pre>
  
  <p>or  </p>
  
  <pre><code>string x = null;
  </code></pre>
  
  <p>What about Generic parameter T?    </p>
  
  <p>I've tried doing:  </p>
  
  <pre><code>void someMethod&lt;T&gt;(T y)
  {
      T x = new T();  
      ...
  }
  </code></pre>
  
  <p>Generate error :<br>
  <strong>Cannot create an instance of the variable type 'T' because it does not have the new() constraint</strong></p>