Chapter 3. C# 3: LINQ and everything that comes with it
- Implementing trivial properties simply
- Initializing objects and collections more concisely
- Creating anonymous types for local data
- Using lambda expressions to build delegates and expression trees
- Expressing complex queries simply with query expressions
The new features of C# 2 were mostly independent of each other. Nullable value types depended on generics, but they were still separate features that didn’t build toward a common goal.
C# 3 was different. It consisted of many new features, each of which was useful in its own right, but almost all of which built toward the larger goal of LINQ. This chapter shows each feature individually and then ...
Get C# in Depth, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.