How to delete multiple entries from a List without going out of range?
<p>I have a list of integers that contains a number of values (say, 200).</p>

<pre><code>List&lt;int&gt; ExampleList;
</code></pre>

<p>And another list on integers that holds the indexes that need to be deleted from ExampleList. However, this list is not sorted.</p>

<pre><code>List&lt;int&gt; RemoveFromExampleList;
</code></pre>

<p>If it were sorted, I would have run a reverse loop and deleted all the values like this:</p>

<pre><code>for (int i = (RemoveFromExampleList.Count-1); i &gt;=0; i--)
{
    ExampleList.RemoveAt(RemoveFromExampleList[i]);
}
</code></pre>

<p>Do I have to sort RemoveFromExampleList, or is there another way to prune the unnecessary values from ExampleList?</p>

<p>If I do have to sort, whats the easiest way to sort? Is there any inbuilt C# library/method to sort? </p>
