C# 3.0 Design Patterns
Use the Power of C# 3.0 to Solve Real-World Problems
Publisher: O'Reilly Media
Release Date: February 2009
Pages: 336
Read on Safari with a 10-day trial
Start your free trial now Buy on AmazonWhere’s the cart? Now you can get everything on Safari. To purchase books, visit Amazon or your favorite retailer. Questions? See our FAQ or contact customer service:
1-800-889-8969 / 707-827-7019
support@oreilly.com
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.
Table of Contents
-
Chapter 1 C# Meets Design Patterns
-
About Patterns
-
About UML
-
About C# 3.0
-
About the Examples
-
-
Chapter 2 Structural Patterns: Decorator, Proxy, and Bridge
-
Decorator Pattern
-
Proxy Pattern
-
Bridge Pattern
-
Example: OpenBook
-
Pattern Comparison
-
-
Chapter 3 Structural Patterns: Composite and Flyweight
-
Composite Pattern
-
Example: Photo Library
-
Flyweight Pattern
-
Exercises
-
Pattern Comparison
-
-
Chapter 4 Structural Patterns: Adapter and Façade
-
Adapter Pattern
-
Façade Pattern
-
Pattern Comparison
-
-
Chapter 5 Creational Patterns: Prototype, Factory Method, and Singleton
-
Prototype Pattern
-
Factory Method Pattern
-
Singleton Pattern
-
Pattern Comparison
-
-
Chapter 6 Creational Patterns: Abstract Factory and Builder
-
Abstract Factory Pattern
-
Builder Pattern
-
Pattern Comparison
-
-
Chapter 7 Behavioral Patterns: Strategy, State, and Template Method
-
Strategy Pattern
-
State Pattern
-
Template Method Pattern
-
Pattern Comparison
-
-
Chapter 8 Behavioral Patterns: Chain of Responsibility and Command
-
Chain of Responsibility Pattern
-
Command Pattern
-
Pattern Comparison
-
-
Chapter 9 Behavioral Patterns: Iterator, Mediator, and Observer
-
Iterator Pattern
-
Mediator Pattern
-
Observer Pattern
-
Pattern Discussion and Comparison
-
-
Chapter 10 Behavioral Patterns: Visitor, Interpreter, and Memento
-
Visitor Pattern
-
Interpreter Pattern
-
Memento Pattern
-
Pattern Comparison
-
-
Chapter 11 The Future of Design Patterns
-
Summary of Patterns
-
A Future for Design Patterns
-
Concluding Remarks
-
-
Appendix Appendix
-
Pluggable Adapter Pattern Example Code—CoolBook
-
Prototype Pattern Example Code—Photo Archive
-
Iterator Pattern Example Code—Family Tree
-
Observer Pattern Example Code—Blogs
-
Visitor Pattern Theory Code—Reflection
-
Interpreter Pattern Example Code—Course Rules
-
Interpreter Pattern Example Code—Mirrors
-
-
Bibliography
-
Colophon