Web
Analytics
Introduction of LINQ Operators - Tutorial

For Consultation : +91 9887575540

Stay Connected :

In this tutorial, I am going to discuss query operators in linq. query operators are categorized as per following criteria.

  1. Input sequence(s) result in an output sequence.
  2. Input sequence results in scalar value/single element output.
  3. No input results in an output sequence (these operators generate their own elements).

Types of LINQ operators

  • Restriction: Where
  • Projection: Select, SelectMany
  • Partitioning: Take, Skip, TakeWhile, SkipWhile
  • Ordering: OrderBy, OrderByDescending, ThenBy, ThenByDescending, Reverse
  • Grouping: GroupBy
  • Set: Concat, Union, Intersect, Except
  • Conversion: ToArray, ToList, ToDictionary, ToLookup, OfType, Cast¬† Element: First, FirstOrDefault, Last, LastOrDefault, Single, SingleOrDefault, ElementAt, ElementAtOrDefault, DefaultIfEmpty
  • Generation: Empty, Range, Repeat
  • Quantifiers: Any, All, Contains, SequenceEqual
  • Aggregate: Count, LongCount, Sum, Min, Max, Average, Aggregate
  • Joining: Join, GroupJoin, Zip





Select your currency