I need to send IList to Collection ( System.Collections.ObjectModel )
IList
Collection
System.Collections.ObjectModel
How do you do it?
Collection<MyClass> coll = new Collection<MyClass>(myIList);
Just use the constructor:
IList<T> myList = ... System.Collections.ObjectModel.Collection<T> omc = new System.Collections.ObjectModel.Collection<T>(myList);