, . , SortedList, RemoveAt.
, , O (n), . O (n ^ 2) O (n ^ 2 * log (n)). RemoveAt - O (n), . Remove O (log (n)), RemoveAt. , , , , , "n".
var myDictionary = new SortedList<decimal, string>();
int i = 0;
while (myDictionary.Count > 0 && i < myDictionary.Count)
{
if ()
{
myDictionary.RemoveAt(i);
}
else
{
i++;
}
}