Linq query in C# to retrieve the set of elements with respect to list
<p>We have the list A which contain the random indexes in it. I have another list B which contains the class objects in it. I want to parse list B with the indexes present in list A and find the objects which have name Amar in it using Linq.</p>

<p>For example:</p>

<pre><code>List&lt;int&gt; Indexes = new List&lt;int&gt;();   // This contains the random indexes
List&lt;Student&gt; StuObj = new List&lt;Student&gt;();

Class Student
{ 
    String name;
}
</code></pre>

<p>Now I want to parse the list <code>StuObj</code> with the respect to the indexes present in the list <code>Indexes</code> and get the <code>Student</code> object indexes present in the list <code>StuObj</code> where the name is <code>Amar</code>.</p>