1. C# Language Idioms

Why should you change what you are doing today if it works? The answer is that you can be better. You change tools or languages because you can be more productive. You don’t realize the expected gains if you don’t change your habits. This is harder when the new language, C#, has so much in common with a familiar language, such as C++ or Java. C# is another curly braced language, making it easy to fall into the same idioms you used in other languages in the same family. That will prevent you from getting the most out of C#. The C# language has evolved since its first commercial release in 2001. It’s now much farther removed from C++ or Java than it was in its original release. If you are approaching C# from another language, ...

Get Effective C# (Covers C# 4.0): 50 Specific Ways to Improve Your C#, Second 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.