What is Linq used for in C

LINQ provides functions to query cached data from all kinds of data sources. The data source could be a collection of objects, database or XML files. We can