2010-05-04 45 views

回答

7
Collection<MyClass> coll = new Collection<MyClass>(myIList); 
4

只需使用構造函數:

IList<T> myList = ... 
System.Collections.ObjectModel.Collection<T> omc = 
      new System.Collections.ObjectModel.Collection<T>(myList);