Why there is dependencies when i copy a List<T> in a List<List<T>>? : <p>I'm creating a little C# apps using List of an object and i have a very noob question :</p>

<p><strong>First i'm filling my object 'A' , then i add in my list named 'lstA' :</strong></p>

<pre><code>List&lt;List&lt;A&gt;&gt; Lst_LstA = new List&lt;List&lt;A&gt;&gt;();  // List of List&lt;A&gt;
List&lt;A&gt; lstA = new List&lt;A&gt;(); // List of my object &lt;A&gt;

A myA = new A();
A.xxx = xx;
A.yyy = yy;

lstA.Add(A);
Lst_LstA.Add(lstA);
lstA.Clear();
</code></pre>

<p>What is my problem ? Very simple : When i call  <strong>lstA.Clear()</strong>, it clear my <strong>lstA</strong> list, perfect, but...it clear too the element in my <strong>lst_LstA&lt;></strong> list.</p>

<p>I need to clear the <strong>lstA</strong> List, but only these list.</p>

<p>Why the Clear() modify too the other list ? How solve this simply ?</p>

<p>Thanks a lot,</p>

<p>best regards,</p>
