We have 4ItemInfo
s in the megaItems:
IEnumerable<ItemInfo> megaItems;
After Doing one of the below lines we have 0 ItemInfo
s
var array = megaItems.ToArray();
//var array = megaItems.Cast<ItemInfo>().ToArray();
return array;
How to do this conversion the proper way ?