您好,欢迎光临本网站![请登录][注册会员]  
文件名称: LINQ TO OBJECTS USING C#
  所属分类: 其它
  开发工具:
  文件大小: 4mb
  下载次数: 0
  上传时间: 2015-05-11
  提 供 者: z4073*****
 详细说明: 作者简介 Troy Magennis is a Microsoft C# MVP and a keen traveler who currently works for Travelocity, which manages the travel and leisure websites travelocity.com, lastminute.com, and zuji. As Vice President of Architecture, he leads a talented team of architects spread across four continents, committed to being the traveler’s champion. Technology has always been a passion. After cutting his teeth on early 8-bit personal computers, Troy moved into electronic engineering (assembly language coding), which later led to positions in so ftware application development and architecture for some of the most prominent corporations in automotive, banking, and online commerce. Troy’s first exposure to LINQ was in 2006 when he took a sabbatical to learn it and became hooked, ultimately leading him to publish the popular HookedOnLINQ website. 目录 Foreword . . . x Preface . . . xii Acknowledgments . . . xix About the Author . . . xx Chapter 1: Introducing LINQ . . . 1 What Is LINQ? . . . 1 The (Almost) Current LINQ Story . . . 3 LINQ Code Makeover–Before and After Code Examples . . . 5 Benefits of LINQ . . . 12 Summary . . . 15 References . . . 15 Chapter 2: Introducing LINQ to Objects . . . 17 LINQ Enabling C# 3.0 Language Enhancements . . . 17 LINQ to Objects Five-Minute Overview . . . 30 Summary . . . 39 References . . . 39 Chapter 3: Writing Basic Queries . . . 41 Query Syntax Style Options . . . 41 How to Filter the Results (Where Clause) . . . 49 How to Change the Return Type (Select Projection) . . . 54 How to Return Elements When the Result Is a Sequence (Select Many) . . . 59 How to Get the Index Position of the Results . . . 61 How to Remove Duplicate Results . . . 62 How to Sort the Results . . . 63 Summary . . . 73 Chapter 4: Grouping and Joining Data . . . 75 How to Group Elements . . . 75 How to Join with Data in Another Sequence . . . 93 Summary . . . 119 Chapter 5: Standard Query Operators . . . 121 The Built-In Operators . . . 121 Aggregation Operators–Working with Numbers . . . 123 Conversion Operators–Changing Types . . . 131 Element Operators . . . 144 Equality Operator–SequenceEqual . . . 153 Generation Operators–Generating Sequences of Data . . . 155 Merging Operators . . . 159 Partitioning Operators–Skipping and Taking Elements . . . 160 Quantifier Operators–All, Any, and Contains . . . 164 Summary . . . 171 Chapter 6: Working with Set Data . . . 173 Introduction . . . 173 The LINQ Set Operators . . . 174 The HashSet Class . . . 185 Summary . . . 192 Chapter 7: Extending LINQ to Objects . . . 195 Writing a New Query Operator . . . 195 Writing a Single Element Operator . . . 196 Writing a Sequence Operator . . . 208 Writing an Aggregate Operator . . . 216 Writing a Grouping Operator . . . 222 Summary . . . 232 Chapter 8: C# 4.0 Features . . . 233 Evolution of C# . . . 233 Optional Parameters and Named Arguments . . . 234 Dynamic Typing . . . 243 COM-Interop and LINQ . . . 251 Summary . . . 260 References . . . 260 Chapter 9: Parallel LINQ to Objects . . . 261 Parallel Programming Drivers . . . 261 Multi-Threading Versus Code Parallelism . . . 264 Parallelism Expectations, Hindrances, and Blockers . . . 267 LINQ Data Parallelism . . . 271 Writing Parallel LINQ Operators . . . 289 Summary . . . 301 References . . . 301 Glossary . . . 303 Index . . . 307 ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: LINQ
 输入关键字,在本站1000多万海量源码库中尽情搜索: