I have a
List
but I need a
Is there a way to cast this in c
You could also use List.ConvertAll.
Documentation: http://msdn.microsoft.com/en-us/library/73fe8cwf.aspx
Example:
List newList = oldList.ConvertAll(i => i as IDataField);