5. Working with the Framework

My friend and colleague Martin Shoemaker runs a great roundtable called “Do I Have to Write That .NET Code?” The answer is, hopefully, no. You should use all the tools at your disposal to avoid writing code that already exists and that you can use.

The .NET Framework is a rich class library. The more you learn about the framework, the less code you need to write yourself. The framework library will do more of the work for you. This chapter shows you some common techniques to get the most out of the .NET Framework. Other items help you choose the best option when multiple choices are available in the framework. You can write your classes and algorithms to utilize what’s already there instead of fighting against ...

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