title: How to iterate the List in Reflection
body: <p>I am having one property called Students which is of type <code>List&lt;Student&gt;</code>.</p>
  
  <p>In reflection i can get the value of Students Property.</p>
  
  <p>Now the problem is How to iterate the List of Students.</p>
  
  <p>I need to check whether StudentID [ some value ] is in that collection.</p>
  
  <pre><code>var collection = studentPro.GetValue(studentObj,null);
  
  //I need to iterate like this,
  
  foreach(var item in collection)
  {
       if(item.StudentID == 33)
           //Do stuff
  }
  </code></pre>
  
  <p>Please help me.</p>