Dynamic Intialize in c#
<p>I've a class </p>

<pre><code>class sampleClass
{
    ...........
    ...........
    public sampleClass()
    {.........}
}
</code></pre>

<p>and in another class i created an array like</p>

<pre><code>sampleClass[] X=new sampleClass[]{new sampleClass(),new sampleClass()}
</code></pre>

<p>here i gave 2 instance of the constructor. i need this dynamically..</p>

<p>that is the size of the array should be dynamically changed</p>
