Mark   linq queries and operators
Upcoming SlideShare
Loading in...5
×
 

Mark linq queries and operators

on

  • 335 views

 

Statistics

Views

Total Views
335
Views on SlideShare
335
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Mark   linq queries and operators Mark linq queries and operators Presentation Transcript

  • Linq Queries & Operators 2014/1/9 Mark Chen 1
  • Enumerable Method Select<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>) SelectMany<TSource, TResult>(IEnumerable<TSource>, Func<TSource, IEnumerable<TResult>>) Concat<TSource> Union<TSource>(IEnumerable<TSource>, IEnumerable<TSource>) Where<TSource>(IEnumerable<TSource>, Func<TSource, Int32, Boolean>) OrderBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) OrderByDescending<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) ThenBy<TSource, TKey>(IOrderedEnumerable<TSource>, Func<TSource, TKey>) ThenByDescending<TSource, TKey>(IOrderedEnumerable<TSource>, Func<TSource, TKey>) 2014/1/9 2
  • Enumerable Method Reverse<TSource> ToArray<TSource> ToList<TSource> Contains<TSource>(IEnumerable<TSource>, TSource) Count() Sum() Max() Min() 2014/1/9 3
  • Enumerable Method Average() Aggregate<TSource>(IEnumerable<TSource>, Func<TSource, TSource, TSourc e>) Take<TSource>() Skip<TSource>() First<TSource>(IEnumerable<TSource>) FirstOrDefault<TSource>(IEnumerable<TSource>) Last<TSource>(IEnumerable<TSource>) LastOrDefault<TSource>(IEnumerable<TSource>) 2014/1/9 4
  • Enumerable Method Range() Repeat<TResult>() ElementAt<TSource> ElementAtOrDefault<TSource> Empty<TResult> DefaultIfEmpty<TSource>(IEnumerable<TSource>) All<TSource> Any<TSource>(IEnumerable<TSource>) 2014/1/9 5
  • 尚未了解的部分 AsQueryable() AsEnumerable<TSource>() AsQueryable(IEnumerable) AsQueryable<TElement>(IEnumerable<TEle ment>) 2014/1/9 6
  • 尚未了解的部分 Cast<TResult>() OfType<TResult>() 2014/1/9 7