adding list items into list in c#
<p>i have an list with data like this</p>

<pre><code>name    |school |parent
--------+-------+-------
kumar   |fes    |TOP
manju   |fes    |kumar
anu     |frank  |kumar
anitha  |jss    |TOP
rohit   |frank  |manju
anill   |vijaya |manju
vani    |jss    |kumar
soumya  |jss    |kumar
madhu   |jss    |rohit
shiva   |jss    |rohit
vanitha |jss    |anitha
anu     |jss    |anitha
</code></pre>

<p>Code:</p>

<pre><code>List&lt;EMP&gt; obj2 = new List&lt;EMP&gt;();
List&lt;EMP&gt; obj3 = new List&lt;EMP&gt;();
List&lt;EMP&gt; obj4 = new List&lt;EMP&gt;();

string [] strnames= {"Top","kumar","Anu","manju"};

//what i am  doing here is that in the string array i have the names of the string.
obj2 = ObjEmp.Where(p1 =&gt; p1.Parent == "Top").ToList();
obj3 = ObjEmp.Where(p1 =&gt; p1.Parent == "kumar").ToList();
obj4 = ObjEmp.Where(p1 =&gt; p1.Parent == "manju ").ToList();
</code></pre>

<p>here
<strong>obj2 =  ObjEmp.Where(p1 => p1.Parent == "Top").ToList();</strong>
here in obj2  will be  filled  with  data(kumar      fes         TOP,anitha      jss          TOP) with these  two data.</p>

<p>now row kumar has further data 
obj3 =ObjEmp.Where(p1 => p1.Parent == "kumar").ToList();</p>

<p>here wat get some more data.what we need to do here is that we need to take data  from </p>

<p>obj3  and then add  those  data in obj2[].  and  also  make  sure  that we  add the  obj3 </p>

<p>data in obj2.</p>

<p>here as obj2  will be  filled  with datalike{obj2[0],obj2[1],obj2[2],obj2[3]}</p>

<p>here  we  again need  to check where under  which object  should we  place the data</p>

<p>hope my question is clear? 
 anyhelp would be great
 thanks</p>
