C# 3.0 Design Patterns: Use the Power of C# 3.0 to Solve Real-World Problems

Front Cover
"O'Reilly Media, Inc.", Dec 10, 2007 - Computers - 318 pages

If you want to speed up the development of your .NET applications, you're ready for C# design patterns -- elegant, accepted and proven ways to tackle common programming problems. This practical guide offers you a clear introduction to the classic object-oriented design patterns, and explains how to use the latest features of C# 3.0 to code them.

C# Design Patterns draws on new C# 3.0 language and .NET 3.5 framework features to implement the 23 foundational patterns known to working developers. You get plenty of case studies that reveal how each pattern is used in practice, and an insightful comparison of patterns and where they would be best used or combined. This well-organized and illustrated book includes:

  • An explanation of design patterns and why they're used, with tables and guidelines to help you choose one pattern over another
  • Illustrated coverage of each classic Creational, Structural, and Behavioral design pattern, including its representation in UML and the roles of its various players
  • C# 3.0 features introduced by example and summarized in sidebars for easy reference
  • Examples of each pattern at work in a real .NET 3.5 program available for download from O'Reilly and the author's companion web site
  • Quizzes and exercises to test your understanding of the material.
With C# 3.0 Design Patterns, you learn to make code correct, extensible and efficient to save time up front and eliminate problems later. If your business relies on efficient application development and quality code, you need C# Design Patterns.
 

Contents

C Meets Design Patterns
1
Decorator Proxy and Bridge
8
Composite and Flyweight
49
Adapter and Façade
74
Prototype Factory Method and Singleton
101
Abstract Factory and Builder
122
Strategy State and Template Method
139
Chain of Responsibility and Command
164
Iterator Mediator and Observer
188
Visitor Interpreter and Memento
220
The Future of Design Patterns
253
Appendix
259
Bibliography
283
Index
285
Copyright

Common terms and phrases

Popular passages

Page 16 - Decorator using System; using System. Drawing; using System. Drawing. Drawing2D; using System. Windows. Forms; using System.
Page 24 - C# program consists of one or more compilation units, each contained in a separate source file. When a C# program is compiled, all of the compilation units are processed together. Thus, compilation units can depend on each other, possibly in a circular fashion.
Page 3 - Generics permit classes, structs, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate.
Page 24 - Namespaces C# programs are organized using namespaces. Namespaces are used both as an "internal" organization system for a program and as an "external" organization system — a way of presenting program elements that are exposed to other programs.
Page 4 - Partial types that allow classes, structs, and interfaces to be broken into multiple pieces stored in different source files for easier development and maintenance...

Bibliographic information