Types of Objects that query using LINQ - LINQ

Q.  What types of Objects can you query using LINQ?
- Published on 31 Aug 15

a. DataTables and DataSets
b. Any .NET Framework collection that implements IEnumerable(T)
c. Collections that implement interfaces that inherit from IEnumerable(T)
d. All of the above

ANSWER: All of the above
 
In the above question all the options are correct. Any .NET Framework collection that implements IEnumerable(T) or that inherit from IEnumerable(T) can be queried using LINQ.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)