Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IListをCollection( System.Collections.ObjectModel)にキャストする必要があります
IList
Collection
System.Collections.ObjectModel
これについてどう思いますか?
Collection<MyClass> coll = new Collection<MyClass>(myIList);
コンストラクタを使用するだけです:
IList<T> myList = ... System.Collections.ObjectModel.Collection<T> omc = new System.Collections.ObjectModel.Collection<T>(myList);