LINQ to Objects Using C# 4.0
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > LINQ to Objects Using C# 4.0: Using and Extending LINQ to Objects and Parallel LINQ (PLINQ)
LINQ to Objects Using C# 4.0: Using and Extending LINQ to Objects and Parallel LINQ (PLINQ)

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

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

“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.0 is 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 of Real-World Functional Programming   Your Complete Example-Rich Guide to Using and Extending LINQ to Objects and PLINQ   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 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:
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


Best Sellers


Product Details
  • ISBN-13: 9780321637000
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Height: 231 mm
  • No of Pages: 336
  • Sub Title: Using and Extending LINQ to Objects and Parallel LINQ (PLINQ)
  • Width: 179 mm
  • ISBN-10: 0321637003
  • Publisher Date: 11 Mar 2010
  • Binding: Paperback
  • Language: English
  • Spine Width: 18 mm
  • Weight: 532 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
LINQ to Objects Using C# 4.0: Using and Extending LINQ to Objects and Parallel LINQ (PLINQ)
Pearson Education (US) -
LINQ to Objects Using C# 4.0: Using and Extending LINQ to Objects and Parallel LINQ (PLINQ)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

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

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!