Join Books.org — it's free

Platform-Specific Programming, Microsoft .NET, Web Services, C/C++, Web Application Development, Database Administration & Management, C#
Effective C#: 50 Specific Ways to Improve Your C# by Bill Wagner — book cover

Effective C#: 50 Specific Ways to Improve Your C#

by Bill Wagner
Available on Bookshop Write a review

Books.org participates in affiliate programs including Bookshop.org and the Amazon Services LLC Associates Program. We may earn a commission from qualifying purchases made through links on this page, at no additional cost to you.

Log in to track your reading progress.

Overview

C#'s resemblances to C++, Java, and C make it easier to learn, but there's a downside: C# programmers often continue to use older techniques when far better alternatives are available. In Effective C#, respected .NET expert Bill Wagner identifies fifty ways you can start leveraging the full power of C# in order to write faster, more efficient, and more reliable software.

Effective C# follows the format that made Effective C++ (Addison-Wesley, 1998) and Effective Java (Addison-Wesley, 2001) indispensable to hundreds of thousands of developers: clear, practical explanations, expert tips, and plenty of realistic code examples. Drawing on his unsurpassed C# experience, Wagner addresses everything from value types to assemblies, exceptions to reflection. Along the way, he shows exactly how to avoid dozens of common C# performance and reliability pitfalls. You'll learn how to:

  • Use both types of C# constants for efficiency and maintainability, see item 2
  • Use immutable data types to eliminate unnecessary error checking, see item 7
  • Avoid the C# function that'll practically always get you in trouble, see item 10
  • Minimize garbage collection, boxing, and unboxing, see items 16 and 17
  • Take full advantage of interfaces and delegates, see items 19 though 22
  • Create CLS compliant assemblies that use noncompliant C# language features, see item 30
  • Improve reliability and maintainability by creating small, cohesive assemblies, see item 32
  • Leverage the full power of .NET's runtime diagnostics, see item 36
  • Know when–and when not–to use reflection, see items 42 and 43
  • Preview the major enhancements in C# 2.0, see item 49
  • You're already a successful C# programmer–this book can help you become an outstanding one.

Bill Wagner is co-founder of and .NET consultant for SRT Solutions. A nationally recognized independent expert on .NET, he has been a regular contributor to ASP.NET Pro Magazine, Visual Studio Magazine, and the .NET Insight newsletter. In addition to being a Microsoft Regional Director, he is also active in the Southeast Michigan .NET User Group and the Ann Arbor Computing Society. He is author of The C# Core Language Little Black Book (The Coriolis Group, 2002).


© Copyright Pearson Education. All rights reserved.

Reviews

There are no reviews yet. Log in to write one.

Editorials

From Barnes & Noble

The Barnes & Noble Review
C# isn’t C++ or Java. Your old habits could be holding you back. In Effective C#, Bill Wagner brings together 50 new C# idioms and techniques that accelerate development, improve code quality, and enhance performance and scalability.

Wagner’s solutions cover core language elements, .NET resource management, binary component development, more effective expression of program design, and many other topics. Sometimes he focuses on features that exist only in C#, elegantly addressing problems that previous languages didn’t handle well. Elsewhere, he shows why older techniques don’t work the way you expect in C# (for example, in garbage collection).

Wagner’s an outstanding writer for working programmers in a hurry. He’s crisp, concise, well organized. You’ll get a lot of “bang” for the time you invest with this 300-page book. Bill Camarda, from the February 2005 Read Only

Slashdot.org

If you're interested in, or currently working with, .NET and are tempted to skip past this book as Just Another C# Reference Book, think again. Wagner's book is a great resource because it covers concepts which run across the entire .NET Framework regardless of which language you're working with. ...The bottom line: this book really is a critical addition to a serious C# or .NET developer's bookshelf.

Book Details

Published
December 17, 2004
Publisher
Pearson Education
Pages
336
ISBN
9780321630162

More by Bill Wagner

Similar books