O'Reilly logo

More Effective C#: 50 Specific Ways to Improve Your C# by Bill Wagner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 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.

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required