Javatpoint Logo
Javatpoint Logo

LINQ to Lists/Collection

LINQ to Lists/collection means writing the LINQ queries on list or collection. By using LINQ queries on the collection or list, we can filter or sort or remove the duplicates elements with minimal coding.

Syntax of LINQ to Lists or Collections

Here is the syntax of writing the LINQ queries on the list or collection to get the required elements.

In the above syntax, we have written the LINQ query to get the required data from the "objEmp" collection/list object.

Example of LINQ to Lists/Collections

In the above code, we used the LINQ query on the list "objEmp" to get the required elements based on the requirements.

OUTPUT:

LINQ to Lists/Collection
Next Topic#




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA