Design Patterns in C#
Steven John MetskerBooks.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.
Overview
Steven John Metsker explains how to use C# as an object-oriented language, using design patterns to create clean code while taking advantage of the extensive Microsoft(R) .NET Framework Class Libraries.
For all 23 classic "Gang of Four" design patterns, Metsker offers detailed code examples utilizing C# and the .NET Framework--as well as programming exercises crafted to help you rapidly build expertise. His exercises and explanations make extensive use of the Unified Modeling Language, helping you build your skills in this standard notation.
Design patterns covered include:
- Interfaces: Adapter, Facade, Composite, and Bridge
- Responsibility: Singleton, Observer, Mediator, Proxy, Chain of Responsibility, and Flyweight
- Construction: Builder, Factory Method, Abstract Factory, Prototype, and Memento
- Extensions: Decorator, Iterator, and Visitor
If you've already used design patterns in other languages, Design Patterns in C# will deepen your understanding, build your confidence, and help you apply them to any C# project. If you're a Microsoft programmer who's new to design patterns, this book will be an ideal practical introduction.
www.awprofessional.com/patterns/
ADDISON-WESLEY PROFESSIONAL
Pearson Education
ISBN: 0-321-12697-1
Editorials
From Barnes & Noble
The Barnes & Noble ReviewAre you a C# programmer who wants to move up, earn more, become slightly more indispensable? Master software design. For years, that’s meant learning patterns -- beginning with the 23 patterns in the classic “Gang of Four” book. Now, you can learn these patterns directly in C#, using C# and .NET examples -- not warmed-over C++ or Java code.
Stephen Metsker takes a thoroughly hands-on approach. Every new pattern is accompanied with challenges that put it to work. For example: explaining the trade-offs of certain design choices, rewriting existing code, completing partly written code, or finishing incomplete UML class diagrams. (Rusty on UML? Metsker offers a handy refresher.)
Slightly varying from the GoF, Metsker has organized his patterns into five categories: interface, responsibility, construction, operation, and extension. But those who’ve come across GoF will find all the familiar faces: façade, builder, prototype, singleton, adapter, bridge, proxy, abstract factory, state, visitor, and so forth.
Metsker carefully explains why each pattern is necessary, why it does something important that goes beyond the features built into C#. Wherever C# features require adjustment to the original Design Patterns approach, Metsker clearly shows how and why. (For example, GoF focused heavily on abstract classes but didn’t discuss interfaces, which were absent in their preferred languages, C++ and Smalltalk.)
Patterns represent the distilled wisdom of the entire global software engineering community. By bringing that wisdom to C#, Metsker’s done a great service for millions of serious .NET developers. Bill Camarda
Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2003 and Upgrading & Fixing Networks for Dummies, Second Edition.