LINQ Methods
LINQ is now most freuently used by programmers to query Collections. It reduces number of lines of code. Lets discuss available LINQ methods.
These fuctions can be applied to only those collections which implements IQueryable<T> interface or IEnumerable interface.
Below are the available methods . Click on each method to know more about it and we will take difference between methods which have nearly same output like First and FirstOrDefault , First and Take(1) etc.
- Aggregate
- All
- Any
- AsQueryable
- Average
- Cast
- Concat
- Contains
- Count
- DefaultIfEmpty
- Distinct
- ElementAt
- ElementAtOrDefault
- Except
- First
- FirstOrDefault
- GroupBy
- GroupJoin
- Intersect
- Join
- Last
- LastOrDefault
- LongCount
- Max
- Min
- OfType
- OrderBy
- OrderByDescending
- Reverse
- Select
- SelectMany
- SequenceEqual
- Single
- SingleOrDefault
- Skip
- SkipWhile
- Sum
- Take
- TakeWhile
- ThenBy
- ThenByDescending
- Union
- Where
- Zip
Comments
Post a Comment
Thanks for your valuable feedbacks.Keep visiting the blog...