how do I find a list of integers in a generic list<T>
<p>I have a list of integers and a list of objects (Class_A) with integers as an identifier.
what would be a good way to create a list of objects (Class_A) based on the ids in the integer list.</p>

<p>I get stuck at:</p>

<pre><code>List&lt;class_A&gt; list =  A_List.FindAll(delegate(class_A tmp) 
                      { return ids.Contains(tmp.ID); });


 void main()
  {
  List&lt;int&gt; ids = new List&lt;int&gt;();
  ids.Add(1);
  ids.Add(3);
  ids.Add(5);

  List&lt;class_A&gt; A_List = new List&lt;class_A&gt;();
  A_List.Add(new class_A(1, "one"));
  A_List.Add(new class_A(2, "two"));
  A_List.Add(new class_A(3, "three"));
  A_List.Add(new class_A(4, "four"));
  A_List.Add(new class_A(7, "seven"));
}

 public class class_A
 {
public int ID { get; set; }
public string Text { get; set; }
public class_A( int id,string text)
{
  Text = text;
  ID = id;
}
}
</code></pre>
