The easiest way to convert a ICollection to a List is the usage of LINQ like (MSDN)
List<T> L = C.ToList();
Dont’t forget to add
using System.Linq;
otherwise ToList() is not available.
The easiest way to convert a ICollection to a List is the usage of LINQ like (MSDN)
List<T> L = C.ToList();
Dont’t forget to add
using System.Linq;
otherwise ToList() is not available.