I have a collection of table rows (type DataRowCollection
). It is perfectly valid for me to write:
foreach(var row in myDataRowCollection)
{
// Something with row
}
Yet the following will not compile:
myDataRowCollection.ToList();
or even
myDataRowCollection.Select(...
What are these System.Linq extensions expecting that DataRowCollection
doesn't implement?