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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Mark linq queries and operators

180
views

Published on

Published in: Business, Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
180
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Linq Queries & Operators 2014/1/9 Mark Chen 1
  • 2. 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
  • 3. Enumerable Method Reverse<TSource> ToArray<TSource> ToList<TSource> Contains<TSource>(IEnumerable<TSource>, TSource) Count() Sum() Max() Min() 2014/1/9 3
  • 4. 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
  • 5. 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
  • 6. 尚未了解的部分 AsQueryable() AsEnumerable<TSource>() AsQueryable(IEnumerable) AsQueryable<TElement>(IEnumerable<TEle ment>) 2014/1/9 6
  • 7. 尚未了解的部分 Cast<TResult>() OfType<TResult>() 2014/1/9 7