LINQ (Language Integrated Query) is a set of language and rich library features provided by C# for writing consistent and intuitive syntax for querying data… Read More
Tag Archives: CSharp LINQ
A group of technologies known as Language-Integrated Query (LINQ) is built on the direct integration of query functionality into the C# language. The query expression… Read More
Have you ever wanted to programmatically read data from a website? Maybe you want to scrape data from a site that doesn’t have an API,… Read More
Given files, now we count the files based on extension using LINQ. We are considering all types of file formats like pdf, txt, xml and… Read More
Given a list of city names, we need to reverse the list of cities and this can be done using the reverse() method in LINQ.… Read More
Given a list of objects, we need to find the integer double numbers from the list of objects and sort them using LINQ. So this… Read More
Given a list, we need to check if a specified city exists in the given list using LINQ. So we can do this task using… Read More
Given a list of student names, now our task is to sort the names given in the list in descending order using the LINQ, This… Read More
Given a list of objects, we need to find the negative double from the list of objects, this task can be done using the OfType()… Read More
Given a float array, now our task is to check if all the elements present in the float array are greater than 5.0. So we… Read More
Given an array of integers, now we calculate the sum of array elements. So we use the Aggregate() method of LINQ. This method applies a… Read More
LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives a feature to .NET languages to create queries to… Read More
Given a list of employees, now we sort the list according to the salary in descending order and whose department is XYZ. So we use… Read More
LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It provides the ability to .NET languages to create queries to… Read More
Given a list of integers, now our task is to sort the given list of integers. So we use the OrderBy() method of LINQ. This… Read More