I have a
List
but I need a
List
Is there a way to cast this in c
Since the list is coming from
List list = (from i .... select i).ToList();
Couldn't you just fix the "select i" part to instead return IDataField instead? Something like this:
List list = (from i .... select (IDataField)i).ToList();
If that doesn't work, perhaps the "Cast" extension to IEnumerable will work:
List list2 = list.Cast();