将IList转换为集合

Cop*_*ill 3 c# collections ilist

我需要投IList一个Collection(System.Collections.ObjectModel)

你是怎么做到这一点的?

Gui*_*ici 7

Collection<MyClass> coll = new Collection<MyClass>(myIList);
Run Code Online (Sandbox Code Playgroud)