Skip to Content
Essential C# 3.0: For .NET Framework 3.5
book

Essential C# 3.0: For .NET Framework 3.5

by Mark Michaelis
August 2008
Intermediate to advanced content levelIntermediate to advanced
880 pages
18h 35m
English
Addison-Wesley Professional
Content preview from Essential C# 3.0: For .NET Framework 3.5

15. Query Expressions

THE END OF CHAPTER 14 showed a query using standard query operators for GroupJoin(), SelectMany(), and Distinct(), in addition to the creation of two anonymous types. The result was a statement that spanned multiple lines and was fairly complex to comprehend, certainly much more complex than statements typically written in C# 2.0, even though it appears fully compatible with C# 2.0 syntax. The introduction of standard query operators facilitated a far greater likelihood of scenarios where such complex statements were desirable even though the resultant code may not be. In addition, the queries that standard query operators implemented were functionally very similar to queries generally implemented in SQL.

The culmination ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 4.0 Unleashed

C# 4.0 Unleashed

Bart De Smet

Publisher Resources

ISBN: 9780321580559Purchase book