𝔖 Scriptorium
✦   LIBER   ✦

📁

LINQ to Objects Using C# 4.0: Using and Extending LINQ to Objects and Parallel LINQ (PLINQ)

✍ Scribed by Magennis, Troy


Publisher
Addison-Wesley Professional
Year
2010
Tongue
English
Leaves
337
Edition
1st edition
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


"For several years, Troy has been one of the key figures in the LINQ community. This comprehensive and well-written book serves as a compendium of the important wisdom and experience that he has accumulated through his years of studying LINQ and its uses." -Charlie Calvert, Microsoft C# Community Program Manager "LINQ is changing the way we think about working with data and, in many ways, also about programming in general.LINQ to Objects Using C# 4.0is a thorough reference that teaches how to simplify many day-to-day tasks with data. It also gives you the foundations that are necessary to understand a wide range of fascinating applications of LINQ that will, no doubt, continue to appear over the next few years." -Tomas Petricek, Microsoft MVP and author ofReal-World Functional ProgrammingYour Complete Example-Rich Guide to Using and Extending LINQ to Objects and PLINQUsing LINQ to Objects, .NET developers can write queries over object collections with the same deep functionality that was once available only with SQL and relational databases. Now, for the first time, developers have a comprehensive and authoritative guide to applying LINQ to Objects in real-world software. Microsoft MVP Troy Magennis introduces state-of-the-art techniques for working with in-memory collections more elegantly and efficiently--and writing code that is exceptionally powerful, robust, and flexible. Drawing on his unsurpassed experience coding software using LINQ and hosting the popular HookedOnLINQ.com site, Magennis presents timely, realistic solutions to a wide spectrum of development challenges, such as combining data from multiple sources, and achieving optimal performance with extremely large sets of data. You'll begin with brief quick-starts that walk you through LINQ to Objects' key features and query syntax. Next, you'll drill down to detailed techniques for applying and extending these features with C# 4.0 and C# 3.0--including code examples that reflect the realities of production development. Coverage includes - Writing basic LINQ queries with C#: filtering, projecting, and sorting data from in-memory collections - Mastering advanced techniques for grouping and joining data and understanding the performance implications of each technique - Taking full advantage of LINQ's standard query operators - Creating custom query operators that follow best practices for coding patterns and error handling - Writing more fluent, readable LINQ queries with C# 4.0's language enhancements, including the new dynamic features - Combining LINQ with COM-Interop to access data sources such as Microsoft Excel - Using Parallel LINQ to Objects (PLINQ) to optimize queries for multi-core processors, and how to build custom parallel query operators - Integrating the best LINQ to Objects patterns into your day-to-day coding

✦ Table of Contents


Cover......Page 1
Contents......Page 8
Foreword......Page 11
Preface......Page 13
Acknowledgments......Page 20
About the Author......Page 21
What Is LINQ?......Page 22
The (Almost) Current LINQ Story......Page 24
LINQ Code Makeover—Before and After Code Examples......Page 26
Benefits of LINQ......Page 33
References......Page 36
LINQ Enabling C# 3.0 Language Enhancements......Page 38
LINQ to Objects Five-Minute Overview......Page 51
References......Page 60
Query Syntax Style Options......Page 62
How to Filter the Results (Where Clause)......Page 70
How to Change the Return Type (Select Projection)......Page 75
How to Return Elements When the Result Is a Sequence (Select Many)......Page 80
How to Get the Index Position of the Results......Page 82
How to Remove Duplicate Results......Page 83
How to Sort the Results......Page 84
Summary......Page 94
How to Group Elements......Page 96
How to Join with Data in Another Sequence......Page 114
Summary......Page 140
The Built-In Operators......Page 142
Aggregation Operators—Working with Numbers......Page 144
Conversion Operators—Changing Types......Page 152
Element Operators......Page 165
Equality Operator—SequenceEqual......Page 174
Generation Operators—Generating Sequences of Data......Page 176
Merging Operators......Page 180
Partitioning Operators—Skipping and Taking Elements......Page 181
Quantifier Operators—All, Any, and Contains......Page 185
Summary......Page 192
Introduction......Page 194
The LINQ Set Operators......Page 195
The HashSet Class......Page 206
Summary......Page 213
Writing a New Query Operator......Page 216
Writing a Single Element Operator......Page 217
Writing a Sequence Operator......Page 229
Writing an Aggregate Operator......Page 237
Writing a Grouping Operator......Page 243
Summary......Page 253
Evolution of C#......Page 254
Optional Parameters and Named Arguments......Page 255
Dynamic Typing......Page 264
COM-Interop and LINQ......Page 272
References......Page 281
Parallel Programming Drivers......Page 282
Multi-Threading Versus Code Parallelism......Page 285
Parallelism Expectations, Hindrances, and Blockers......Page 288
LINQ Data Parallelism......Page 292
Writing Parallel LINQ Operators......Page 310
References......Page 322
Glossary......Page 324
C......Page 328
J......Page 329
O......Page 330
Q......Page 331
T......Page 332
X–Y–Z......Page 333

✦ Subjects


Computer Science;Programming


📜 SIMILAR VOLUMES


LINQ to Objects Using C# 4.0: Using and
✍ Troy Magennis 📂 Library 📅 2010 🏛 Addison-Wesley Professional 🌐 English

I found this book to be most useful of all the Linq books I have come across. It provides great practical examples of how to use Linq effectively on data objects and save hundreds of lines of code. At the same time, the author explains the performance implications so that you can make the right de

LINQ to Objects Using C# 4.0: Using and
✍ Troy Magennis 📂 Library 📅 2010 🏛 Addison-Wesley 🌐 English

Using LINQ to Objects, .NET developers can write queries over object collections with the same deep functionality that was once available only with SQL and relational databases. Now, for the first time, developers have a comprehensive and authoritative guide to applying LINQ to Objects in real-world

LINQ to Objects Using C# 4.0 Using and
✍ Troy Magennis 📂 Library 📅 2010 🏛 Addison-Wesley Professional 🌐 English

Using LINQ to Objects, .NET developers can write queries over object collections with the same deep functionality that was once available only with SQL and relational databases. Now, for the first time, developers have a comprehensive and authoritative guide to applying LINQ to Objects in real-world

Pro LINQ Object Relational Mapping in C#
✍ Vijay P. Mehta 📂 Library 📅 2008 🏛 Apress 🌐 English

Es un libro completamente practico ya que contiene ejemplos muy completos para comprender la conexion a bases de datos por medio de LINQ.By: Edwin Dario Cucul Cuc