By Troy Magennis
Your entire Example-Rich advisor to utilizing and lengthening LINQ to things and PLINQ
Using LINQ to things, .NET builders can write queries over item collections with a similar deep performance that was on hand simply with SQL and relational databases. Now, for the 1st time, builders have a complete and authoritative consultant to utilising LINQ to things in real-world software program. Microsoft MVP Troy Magennis introduces cutting-edge concepts for operating with in-memory collections extra elegantly and efficiently—and writing code that's awfully robust, strong, and versatile.
Drawing on his unsurpassed event coding software program utilizing LINQ and internet hosting the preferred HookedOnLINQ.com website, Magennis offers well timed, life like strategies to a large spectrum of improvement demanding situations, equivalent to combining info from a number of assets, and reaching optimum functionality with super huge units of knowledge. You’ll start with short quick-starts that stroll you thru LINQ to things’ key gains and question syntax. subsequent, you’ll drill right down to designated suggestions for making use of and increasing those positive factors with C# 4.0 and C# 3.0—including code examples that replicate the realities of construction development.
- Writing easy LINQ queries with C#: filtering, projecting, and sorting info from in-memory collections
- Mastering complicated thoughts for grouping and becoming a member of facts and knowing the functionality implications of every technique
- Taking complete good thing about LINQ’s commonplace question operators
- Creating customized question operators that persist with top practices for coding styles and blunder handling
- Writing extra fluent, readable LINQ queries with C# 4.0’s language improvements, together with the hot dynamic features
- Combining LINQ with COM-Interop to entry info resources akin to Microsoft Excel
- Using Parallel LINQ to things (PLINQ) to optimize queries for multi-core processors, and the way to construct customized parallel question operators
- Integrating the simplest LINQ to things styles into your day by day coding