101 LINQ Samples(from MSDN)

來源:互聯網
上載者:User
文章目錄
  • Restriction Operators
  • Projection Operators
  • Partitioning Operators
  • Ordering Operators
  • Grouping Operators
  • Set Operators
  • Conversion Operators
  • Element Operators
  • Generation Operators
  • Quantifiers
  • Aggregate Operators
  • Miscellaneous Operators
  • Custom Sequence Operators
  • Query Execution
101 LINQ Samples
Restriction Operators
  • Where - Simple 1
  • Where - Simple 2
  • Where - Simple 3
  • Where - Drilldown
  • Where - Indexed
Projection Operators
  • Select - Simple 1
  • Select - Simple 2
  • Select - Transformation
  • Select - Anonymous Types 1
  • Select - Anonymous Types 2
  • Select - Anonymous Types 3
  • Select - Indexed
  • Select - Filtered
  • SelectMany - Compound from 1
  • SelectMany - Compound from 2
  • SelectMany - Compound from 3
  • SelectMany - from Assignment
  • SelectMany - Multiple from
  • SelectMany - Indexed
Partitioning Operators
  • Take - Simple
  • Take - Nested
  • Skip - Simple
  • Skip - Nested
  • TakeWhile - Simple
  • SkipWhile - Simple
  • SkipWhile - Indexed
Ordering Operators
  • OrderBy - Simple 1
  • OrderBy - Simple 2
  • OrderBy - Simple 3
  • OrderBy - Comparer
  • OrderByDescending - Simple 1
  • OrderByDescending - Simple 2
  • OrderByDescending - Comparer
  • ThenBy - Simple
  • ThenBy - Comparer
  • ThenByDescending - Simple
  • ThenByDescending - Comparer
  • Reverse
Grouping Operators
  • GroupBy - Simple 1
  • GroupBy - Simple 2
  • GroupBy - Simple 3
  • GroupBy - Nested
  • GroupBy - Comparer
  • GroupBy - Comparer, Mapped
Set Operators
  • Distinct - 1
  • Distinct - 2
  • Union - 1
  • Union - 2
  • Intersect - 1
  • Intersect - 2
  • Except - 1
  • Except - 2
Conversion Operators
  • To Array
  • To List
  • To Dictionary
  • OfType
Element Operators
  • First - Simple
  • First - Indexed
  • FirstOrDefault - Simple
  • FirstOrDefault - Condition
  • FirstOrDefault - Indexed
  • ElementAt
Generation Operators
  • Range
  • Repeat
Quantifiers
  • Any - Simple
  • Any - Indexed
  • Any - Grouped
  • All - Simple
  • All - Indexed
  • All - Grouped
Aggregate Operators
  • Count - Simple
  • Count - Conditional
  • Count - Indexed
  • Count - Nested
  • Count - Grouped
  • Sum - Simple
  • Sum - Projection
  • Sum - Grouped
  • Min - Simple
  • Min - Projection
  • Min - Grouped
  • Min - Elements
  • Max - Simple
  • Max - Projection
  • Max - Grouped
  • Max - Elements
  • Average - Simple
  • Average - Projection
  • Average - Grouped
  • Fold - Simple
  • Fold - Seed
Miscellaneous Operators
  • Concat - 1
  • Concat - 2
  • EqualAll - 1
  • EqualAll - 2
Custom Sequence Operators
  • Combine
Query Execution
  • Deferred
  • Immediate
  • Query Reuse

原文連結
http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.