Web
Analytics
LINQ Tutorial | Angular | ASP.NET Tutorials

For Consultation : +91 9887575540

Stay Connected :

Set Operators in LINQ C sharp with examples

Set Operators in LINQ C sharp with examples

Set Operators in LINQ C# Set operators take  two inputs , that can be array, list, collection etc and able to generate single output. Set query operators: Concat Union Distinct Intersect Except Let me discuss them one by one Concat As it names says all the words about...
C# linq groupby operator with example

C# linq groupby operator with example

Linq groupby query operator able to create groups of input sequence. It is also followed concept of deferred execution , To understand deferred execution please read my blog( ).We can group output sequence using single key or multiple key, for the simplicity here I am...
Reverse in LINQ C#

Reverse in LINQ C#

Reverse The Reverse query operator simply takes the input sequence and returns the elements in the reverse order in the output sequence; so, for example, the first element in the input sequence will become the last element in the output sequence.   using System; using...
ThenBy in linq C#

ThenBy in linq C#

ThenBy  This operator always followed by orderby,  means we always use it after using ordeby operator. If we use orderby and ThenBy together then first items will be sorted as per orderby given condition and resultant output sequence will be sorted by ThenBy...
Ordering Operators in linq C#

Ordering Operators in linq C#

Ordering Operators in linq C# These operators return same number of output elements as input elements in sorted form. OrderBy This operator sort input elements as per given key. For example we have a employee table which have a salary field now we want to get employee...
LINQ SkipWhile() with example

LINQ SkipWhile() with example

Like TakeWhile, the SkipWhile query operator uses a predicate to evaluate each element in the input sequence. SkipWhile will ignore items in the input sequence until the supplied predicate returns false.   using System; using System.Collections.Generic; using...