Can we use linq to query against a DataTable?
A. Yes
B. No
C. Either a or b
D. None of the mentioned
Answer:A
Can we use linq to query against a DataTable?
A. Yes B. No C. Either a or b D. None of the mentioned
Explanation: We cannot use query against the DataTable’s Rows collection, since DataRowCollection doesn’t implement IEnumerable. We need to use the AsEnumerable() extension for DataTable. As an example: