C# 3.0 Design Patterns
暫譯: C# 3.0 設計模式
Judith Bishop
- 出版商: O'Reilly
- 出版日期: 2008-01-15
- 售價: $1,900
- 貴賓價: 9.5 折 $1,805
- 語言: 英文
- 頁數: 318
- 裝訂: Paperback
- ISBN: 059652773X
- ISBN-13: 9780596527730
-
相關分類:
C#、Design Pattern
已過版
買這商品的人也買了...
-
$380$300 -
$880$695 -
$880$695 -
$780$741 -
$780$663 -
$550$435 -
$980$774 -
$780$616 -
$720$569 -
$1,200$948 -
$420$412 -
$880$695 -
$990$891 -
$600$480 -
$2,400$2,280 -
$380$300 -
$2,080$1,976 -
$1,900$1,805 -
$650$514 -
$1,180$932 -
$980$774 -
$620$527 -
$750$638 -
$530$199 -
$520$411
商品描述
Description
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:With C# 3.0 Design Patterns, you learn to make code correct, extensible and efficient to save time up front and eliminate
- 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
Foreword
Preface
1. C# Meets Design Patterns
About Patterns
About UML
About C# 3.0
About the Examples
2. Structural Patterns: Decorator, Proxy, and Bridge
Decorator Pattern
Proxy Pattern
Bridge Pattern
Example: OpenBook
Pattern Comparison
3. Structural Patterns: Composite and Flyweight
Composite Pattern
Flyweight Pattern
Exercises
Pattern Comparison
4. Structural Patterns: Adapter and Façade
Adapter Pattern
Façade Pattern
Pattern Comparison
5. Creational Patterns: Prototype, Factory Method, and Singleton
Prototype Pattern
Factory Method Pattern
Singleton Pattern
Pattern Comparison
6. Creational Patterns: Abstract Factory and Builder
Abstract Factory Pattern
Builder Pattern
Pattern Comparison
7. Behavioral Patterns: Strategy, State, and Template Method
Strategy Pattern
State Pattern
Template Method Pattern
Pattern Comparison
8. Behavioral Patterns: Chainof Responsibility and Command
Chain of Responsibility Pattern
Command Pattern
Pattern Comparison
9. Behavioral Patterns: Iterator, Mediator, and Observer
Iterator Pattern
Mediator Pattern
Observer Pattern
Pattern Discussion and Comparison
10. Behavioral Patterns: Visitor, Interpreter, and Memento
Visitor Pattern
Interpreter Pattern
Memento Pattern
Pattern Comparison
11. The Future of Design Patterns
Summary of Patterns
A Future for Design Patterns
Concluding Remarks
Appendix
Bibliography
Index
商品描述(中文翻譯)
描述
如果您想加速 .NET 應用程式的開發,您已經準備好使用 C# 設計模式——優雅、被接受且經過驗證的方式來解決常見的程式設計問題。本實用指南為您提供了經典物件導向設計模式的清晰介紹,並解釋如何使用 C# 3.0 的最新功能來編寫這些模式。
《C# 設計模式》利用新的 C# 3.0 語言和 .NET 3.5 框架功能來實現 23 種基礎模式,這些模式為開發人員所熟知。您將獲得大量案例研究,揭示每種模式在實踐中的使用方式,以及模式之間的深入比較,並說明它們最適合使用或結合的情境。本書組織良好且附有插圖,包括:
- 設計模式的解釋及其使用原因,並提供表格和指導方針幫助您選擇一種模式而非另一種
- 每種經典創建型、結構型和行為型設計模式的插圖說明,包括其在 UML 中的表示及其各種角色
- 透過範例介紹的 C# 3.0 特性,並在側邊欄中進行總結以便於參考
- 每種模式在實際 .NET 3.5 程式中的應用範例,這些範例可從 O'Reilly 和作者的伴隨網站下載
- 測驗和練習以測試您對材料的理解。
透過《C# 3.0 設計模式》,您將學會如何使代碼正確、可擴展且高效,以節省前期時間並消除不必要的錯誤。
目錄
前言
序言
1. C# 與設計模式的結合
- 關於模式
- 關於 UML
- 關於 C# 3.0
- 關於範例
2. 結構型模式:裝飾者、代理和橋接
- 裝飾者模式
- 代理模式
- 橋接模式
- 範例:OpenBook
- 模式比較
3. 結構型模式:組合和享元
- 組合模式
- 享元模式
- 練習
- 模式比較
4. 結構型模式:適配器和外觀
- 適配器模式
- 外觀模式
- 模式比較
5. 創建型模式:原型、工廠方法和單例
- 原型模式
- 工廠方法模式
- 單例模式
- 模式比較
6. 創建型模式:抽象工廠和建造者
- 抽象工廠模式
- 建造者模式
- 模式比較
7. 行為型模式:策略、狀態和模板方法
- 策略模式
- 狀態模式
- 模板方法模式
- 模式比較
8. 行為型模式:責任鏈和命令
- 責任鏈模式
- 命令模式
- 模式比較
9. 行為型模式:迭代器、中介者和觀察者
- 迭代器模式
- 中介者模式
- 觀察者模式
- 模式討論與比較
10. 行為型模式:訪問者、解釋器和備忘錄
- 訪問者模式
- 解釋器模式
- 備忘錄模式
- 模式比較
11. 設計模式的未來
- 模式總結
- 設計模式的未來
- 結語
附錄
參考文獻
索引