Deleting item from a List<Type>
<p>This is how I remove an item from a <code>List</code>. Is this the right way? Is there any cleaner/faster way to achieve this.</p>

<pre><code>List&lt;ItemClass&gt; itemsToErase = new List&lt;ItemClass&gt;();
foreach(ItemClass itm in DS)
{
       if(itm.ToBeRemoved)
            itemsToErase .Add(itm);
}
foreach(ItemClass eraseItem in itemsToErase)
{
      DS.Remove(eraseItem );
}      
</code></pre>

<p>EDIT: DS is of type <code>List&lt;ItemClass&gt;</code></p>

<p>EDIT: Have one more doubt. What if DS is a <code>LinkedList&lt;ItemClass&gt;</code>. There is no <code>RemoveAll()</code> for that.</p>
