To Compare two generic lists in c# using linq ,we need to compare some of the properties of the generic lists. So if we have two generic lists declared as: List<string> lstA = new List<string>{ “A”, “B”, “C” }; List<string> lstB = new List<string> { “A”, “B”, “C” }; then we can compare the lists for […]
LINQ Tutorial
Select anonymous type in LINQ using lambda expression
LINQ is used for writing queries using C# for querying in memory collections as well as remote data sources.Any data source which implements IEnumerable<T> can be queried using LINQ.It could be any data source which can be queried using LINQ as long as it implements IEnumerable<T> interface.Data source implementing IEnumerable<T> is also called a sequence. There […]
Querying JSON using LINQ to JSON
LINQ is used for querying collections in .NET.There are different LINQ providers for querying different data sources.For example if you want to query SQL then you use LINQ to SQL.When working with JSON you can use LINQ to JSON.It is not a LINQ provider but an API which allows working with JSON objects in C#.It is […]
LINQ Tutorials
In these LINQ Tutorials you will understand what is LINQ and how to use LINQ. LINQ stands for Language Integrated Query.It is used for writing queries using .NET language such as C#.Data consumed by application comes from different data sources so there is some complexity involved when accessing data from different data sources.When accessing data from […]
Use of LINQ
Use of LINQ Every application needs to work with data.Whether it is a small application or enterprise application ,all the application needs to store details such as the users,data to display,data related to problem domain. Most of the languages provides different ways to manage the different types of data.For example in C# you can retrieve and […]