C# preventing Collection Was Modified exception

前端 未结 10 1763
梦毁少年i
梦毁少年i 2021-01-17 17:16

Does

 foreach(T value in new List(oldList) )

is dangerous (costly) when oldList contains 1 millions of object T ?

More g

10条回答
提交回复
热议问题