mursaleen fayyaz

mursaleen fayyaz

  • NA
  • 84
  • 126k

How to use LINQ query operators ?

Jun 6 2013 12:35 PM
LINQ standard query operator defined by the Enumerable class:

  • Filtering Operators

        Where

        OfType<TResult>

  • Projection Operators

        Select

        SelectMany

  • Sorting Operators

        OrderBy

        ThenBy

        OrderByDescending

        ThenByDescending

        Reverse

  • Join Operators

        Join

        GroupJoin

  • Grouping Operators

        GroupBy

        ToLookup

  • Quantifier Operators

        Any

        All

        Contains

  • Partitioning Operators

        Take

        Skip

        TakeWhile

        SkipWhile

  • Set Operators

        Distinct

        Union

        Intersect

        Except

        Zip

  • Element Operators

        First

        FirstOrDefault

        Last

        LastOrDefault

        ElementAt

        ElementAtOrDefault

        Single

        SingleOrDefault

  • Aggregate Operators

        Count

        Sum

        Min

        Max

        Average

        Aggregate

  • Conversion Operators

        ToArray

        AsEnumerable

        ToList

        ToDictionary

        Cast<TResult>

  • Generation Operators

        Empty

        Range

        Repeat


Hey Programmers/developers/Engineers,

Write queries using these operators and share concepts of LINQ.


Answers (2)