title: How to "query" List<T>
body: <p>Say I have,</p>
  
  <pre><code>List&lt;ExampleType&gt; example;
  </code></pre>
  
  <p>Somewhere it has been populated with let's say 10 objects of ExampleType.</p>
  
  <p>ExampleType looks like this:</p>
  
  <pre><code>class ExampleType 
  {
      public string ID;
      public string name;
      //etc.
  
  
     //Some other members..
  }
  </code></pre>
  
  <p>Now, how would I go through the List <code>example</code>, and query only <code>ExampleType</code> objects that has the name e.g. Peter and store it in another List, like:</p>
  
  <pre><code>List&lt;ExampleType&gt; peterExamples = example. //some query functionality that I can't find
  </code></pre>
  
  <p>I have tried <code>example.AsQueryable</code>. But couldn't get it to work. I suspect I need some LINQ to query the list maybe?</p>