The code below fails, and I guess it's cause the Remove()-method is ruining the loop order. But how do I fix it?
List<string> test = new List<string>();
List<string> test2 = new List<string>();
test.Add("test");
test.Add("test");
test.Add("test");
test.Add("test");
foreach(string t in test)
{
test2.Add(t);
test.Remove(t);
}