HomePosts tagged โ€œLINQโ€

LINQ

Showing 1 - 20 of 26 results
This article will provide a code snippet and explains how to return Dictionary as result from a LINQ Query in...
Are you using LINQ in C# and requite to remove all objects matching the condition from a List ? Read...
Today , I was required to order a list of records based on a Name and then ID . A...
Below is a sample code snippet demonstrating how to use the Sum extension method to get the sum of experience...
Learnt something cool today on how to use Lambda expression and LINQ to concatenate string in C#. Using Lambda Expression...
Below are few collections of JavaScript Library that allows you to query JSON objects with the syntax similar like Syntax...
What is NDepend? NDepend is one of the popular tool to analyse the .NET code that supports huge number of...
If you have got an array of integers and you want to multiple the values inside the array and display...
The orderby keyword can be used in LINQ to retrieve the ordered list of records based on the specified field....
When using the SQL Query, we could use the IN keyword to find the item something like this SELECT *...
Do you want to merge string arrays and yet want to keep the distinct values in C# ? . One...
Does the LINQ(Language Integrated Query) have the LIKE operator like the one we have in the SQL Server or any...
This was introduced in C# 3.0. Anonymous types are on the fly classes or unnamed classes. For example i define...
The LINQ (Language Integrated Query) has the extension methods SingleOrDefault and FirstOrDefault . What is the difference between SingleOrDefault and...
The Local Type Inference is also called as Implicitly Types Local Variables in C# and is an easy way to...
In this C# tips & tricks post , we will look at a simple usage of LINQ in C# to...
I came across the requirement to use the โ€œINโ€ equivalent of LINQ when using Entity Framework . I am sure...
Most of the developers would have come across Any() and Count() when using LINQ in C# . What is difference...
I use .First() method in some of the Entity Framework LINQ queries to return only one record . This works...
Below is a sample code snippet demonstrating how to perform paging on a collection with LINQ Query in C# using...