2
je dois jeter un coup IList
à un Collection
(System.Collections.ObjectModel
)jeter un IList à une collection
Comment allez-vous à ce sujet?
je dois jeter un coup IList
à un Collection
(System.Collections.ObjectModel
)jeter un IList à une collection
Comment allez-vous à ce sujet?
Collection<MyClass> coll = new Collection<MyClass>(myIList);
Il suffit d'utiliser le constructeur:
IList<T> myList = ...
System.Collections.ObjectModel.Collection<T> omc =
new System.Collections.ObjectModel.Collection<T>(myList);