title: Finding object in List without using foreach
body: <p>I have list of following class Student</p>
  
  <pre><code>class student
  {
     Guid id;
     string name;
  }
  </code></pre>
  
  <p>The list contains multiple students. To search a student with specific id, I need to use foreach loop and compare id of each student.</p>
  
  <p>I am looking for a better alternative instead of foreach loop. Is there any alternative available?</p>
  
  <p><strong>[EDIT]:</strong> What I meant by better alternative is optimized solution in terms of execution time and performance</p>
  
  <p><strong>[EDIT2]</strong> One more twist, what if id is Guid.</p>
  
  <p>Thanks,</p>
  
  <p>Ram</p>