2010-05-04 4 views

Répondre

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

Il suffit d'utiliser le constructeur:

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