4. C# 3.0 Language Enhancements
The C# 3.0 release has added several new and interesting features to the C# language. Many of these features were added to support Language-Integrated Query (LINQ). However, the C# language features can be used for many things other than LINQ queries. In this chapter, I discuss the new language features, explain how they provide new techniques you can use to solve your current development problems, and describe some practices to avoid when you use these new features.
Item 28: Augment Minimal Interface Contracts with Extension Methods
Extension methods provide a mechanism for C# developers to define behavior in interfaces. You can define an interface with minimal capabilities and then create a set of extension methods ...
Get More Effective C#: 50 Specific Ways to Improve Your C# 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.