title: c# collection.RemoveAll(collection.OfType<type>());
body: <p>Can I do something like this:</p>
  
  <pre><code>collection.RemoveAll(collection.OfType&lt;type&gt;());
  </code></pre>
  
  <p>To remove all the elements of a given type from a collection?</p>