Linq Query Operators Cheat Sheet



Linq Query Operators

Category Query Operator
Filter from a collection Where, OfType
Sorting a collection OrderBy, OrderByDescending, ThenBy, ThenByDescending, Reverse
Grouping Data GroupBy, ToLookup
Join Data GroupJoin, Join
Selecting Data  Select, SelectMany
Aggregate functions Aggregate, Average, Count, LongCount, Max, Min, Sum
Conditions All, Any, Contains
Finding Record ElementAt, ElementAtOrDefault, First, FirstOrDefault, Last, LastOrDefault, Single, SingleOrDefault
Set Distinct, Except, Intersect, Union
Partitioning Skip, SkipWhile, Take, TakeWhile
Concatenation Concat
Equality SequenceEqual
Generation DefaultEmpty, Empty, Range, Repeat
Conversion AsEnumerable, AsQueryable, Cast, ToArray, ToDictionary, ToList

Example

No comments:

Post a Comment

Unleashing the Power of NumPy Arrays: A Guide for Data Wranglers

Ever feel like wrestling with data in Python using clunky loops? NumPy comes to the rescue! This blog post will unveil the magic of NumPy a...