How to Code .NET Tips and Tricks for Coding .NET 1.1 and .NET 2.0 Applications Effectively

What is good code? Writing good code is really a question about what the code is trying to solve. (And good code is not to be confused with patterns because not all pieces of good code are patterns.) We debate about good code because there is not just a single piece of good code, but so many good pi...

Full description

Bibliographic Details
Main Author: Gross, Christian
Format: eBook
Language:English
Published: Berkeley, CA Apress 2007, 2007
Edition:1st ed. 2007
Subjects:
Online Access:
Collection: Springer eBooks 2005- - Collection details see MPG.ReNa
Table of Contents:
  • What This Book Is About
  • .NET Runtime and Framework Related Solutions
  • Value Types and Reference Types Can Be Confused
  • What are Delegates?- What Does the Yield Keyword Really Generate?- Versioning Assemblies
  • Loading Assemblies Without Any Hassles Using A Utility Class
  • Dynamically Loading and Unloading Assemblies
  • Implementing GetHashCode Properly
  • Think of .NET Generics as Black Boxes
  • Figuring Out What Generic Methods Do
  • Why For .NET Generics Do You Need the New and Class Keyword?- Text Related Solutions
  • Converting a String to an Array and Vice Versa
  • Parsing Numbers from Buffers
  • When To Use StringBuilder
  • Finding a Piece of Text within a Text Buffer
  • Always Implement ToString
  • Using a Disposable Type to Iterating the Results of Finding Multiple Pieces of Text within a Text Buffer
  • Making ToString Generate Structured Output
  • C# and Code Related Solutions
  • Inheritance can be Used Effectively (instead of Interfaces only)
  • (Almost) Everything You Ever Wanted To Know About Implementing Interfaces
  • Defining a Namespace, Class, and Interface Naming Convention
  • Understanding the Overloaded Return Type and Property
  • Null Is Not Always A Null
  • Architecture, and Pattern Related Solutions
  • Abstract Class Bridge Pattern Variation
  • Nested Private Class Bridge Pattern Variation
  • How to Effectively Deal with Placeholder Interfaces or Base Classes
  • A Null Value is Not Always a Null State
  • All the Essentials You Ever Wanted To Know About The Factory Pattern
  • Don't Expose the Internal State of a Class
  • Designing Consistent Classes
  • Immutable Types are Scalable Type
  • Understanding and Using Functors
  • Avoiding Constructors Parameters without Identity
  • Understanding and Implementing Singletons
  • Testing Hard To Test Classes Using Mock Objects