Instanciate object in auto-generated property
<p>Is there a way to instanciate an object automatically without instanciate it in the constructor ?</p>

<p>Actually, I have something like :</p>

<pre><code>public List&lt;Object&gt; Products { get; set; }
public MyClass()
{
    this.Products = new List&lt;Object&gt;();
}
</code></pre>

<p>But instead, I would like to instanciate directly my list without specifying in my constructor of my class with something like : </p>

<pre><code>public List&lt;Object&gt; Products = new List&lt;Object&gt;(); { get; set; }
</code></pre>

<p>Is there any trick to do this?</p>
