You can call the ToArray () extension method on it - the array implements ICollection
Edit: Also, while List<T> implements ICollection, IList<T> only implements ICollection<T> , which does not implement ICollection, so if you know that the item in the List<T> test, you should be able to fulfill it ...
Lee Mar 19 '09 at 14:43 2009-03-19 14:43
source share