title: Checking if a list of objects contains a property with a specific value
body: <p>Say I have the following code:</p>
  <pre><code>class SampleClass
  {
      public int Id {get; set;}
      public string Name {get; set;}
  }
  List&lt;SampleClass&gt; myList = new List&lt;SampleClass&gt;();
  //list is filled with objects
  ...
  string nameToExtract = &quot;test&quot;;
  </code></pre>
  <p>So my question is what List function can I use to extract from <code>myList</code> only the objects that have a Name property that matches my <code>nameToExtract</code> string.</p>
  <p>I apologize in advance if this question is really simple/obvious.</p>