1. Trang chủ
  2. » Công Nghệ Thông Tin

oreilly csharp 3 design patterns

316 399 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 316
Dung lượng 2,75 MB

Nội dung

oreilly csharp 3 design patterns

C# 3.0 Design Patterns Other Microsoft NET resources from O’Reilly Related titles NET Books Resource Center C# 3.0 in a Nutshell C# 3.0 Cookbook Head First C# Head First Design Patterns Learning C# 2005 Programming C# 3.0 dotnet.oreilly.com is a complete catalog of O’Reilly’s books on NET and related technologies, including sample chapters and code examples ONDotnet.com provides independent coverage of fundamental, interoperable, and emerging Microsoft NET programming and web services technologies Conferences O’Reilly & Associates bring diverse innovators together to nurture the ideas that spark revolutionary industries We specialize in documenting the latest tools and systems, translating the innovator’s knowledge into useful skills for those in the trenches Visit conferences.oreilly.com for our upcoming events Safari Bookshelf (safari.oreilly.com) is the premier online reference library for programmers and IT professionals Conduct searches across more than 1,000 books Subscribers can zero in on answers to time-critical questions in a matter of seconds Read the books on your Bookshelf from cover to cover or simply flip to the page you need Try it today for free C# 3.0 Design Patterns Judith Bishop Beijing • Cambridge • Farnham • Kưln • Paris • Sebastopol • Taipei • Tokyo C# 3.0 Design Patterns by Judith Bishop Copyright © 2008 Judith Bishop All rights reserved Printed in the United States of America Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O’Reilly books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (safari.oreilly.com) For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com Editor: John Osborn Production Editor: Loranah Dimant Copyeditor: Rachel Wheeler Proofreader: Loranah Dimant Indexer: John Bickelhaupt Interior Designer: David Futato Cover Illustrator: Karen Montgomery Illustrator: Jessamyn Read Printing History: December 2007: First Edition Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc C# 3.0 Design Patterns, the image of a greylag goose, and related trade dress are trademarks of O’Reilly Media, Inc Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O’Reilly Media, Inc was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein This book uses RepKover™, a durable and flexible lay-flat binding ISBN 10: 0-596-52773-X ISBN 13: 978-0-596-52773-0 [M] In memory of my beloved father, Tom Mullins (1920–2007) Table of Contents Foreword xi Preface xv C# Meets Design Patterns About Patterns About UML About C# 3.0 About the Examples Structural Patterns: Decorator, Proxy, and Bridge Decorator Pattern Proxy Pattern Bridge Pattern Example: OpenBook Pattern Comparison 22 36 39 46 Structural Patterns: Composite and Flyweight 49 Composite Pattern Flyweight Pattern Exercises Pattern Comparison 49 61 72 72 Structural Patterns: Adapter and Faỗade 74 Adapter Pattern Faỗade Pattern Pattern Comparison 74 93 99 vii Creational Patterns: Prototype, Factory Method, and Singleton 101 Prototype Pattern Factory Method Pattern Singleton Pattern Pattern Comparison 101 110 115 120 Creational Patterns: Abstract Factory and Builder 122 Abstract Factory Pattern Builder Pattern Pattern Comparison 122 129 137 Behavioral Patterns: Strategy, State, and Template Method 139 Strategy Pattern State Pattern Template Method Pattern Pattern Comparison 139 148 158 162 Behavioral Patterns: Chain of Responsibility and Command 164 Chain of Responsibility Pattern Command Pattern Pattern Comparison 164 175 186 Behavioral Patterns: Iterator, Mediator, and Observer 188 Iterator Pattern Mediator Pattern Observer Pattern Pattern Discussion and Comparison 188 200 210 217 10 Behavioral Patterns: Visitor, Interpreter, and Memento 220 Visitor Pattern Interpreter Pattern Memento Pattern Pattern Comparison viii | Table of Contents 220 233 242 252 11 The Future of Design Patterns 253 Summary of Patterns A Future for Design Patterns Concluding Remarks 253 256 258 Appendix 259 Bibliography 283 Index 285 Table of Contents | ix ... of Contents 220 233 242 252 11 The Future of Design Patterns 2 53 Summary of Patterns A Future for Design Patterns Concluding Remarks 2 53 256 258 Appendix...C# 3. 0 Design Patterns Other Microsoft NET resources from O’Reilly Related titles NET Books Resource Center C# 3. 0 in a Nutshell C# 3. 0 Cookbook Head First C# Head First Design Patterns. .. sorts of other useful design patterns xii | Foreword And that is also why I am excited about this book C# 3. 0 Design Patterns brings the frequently abstruse world of design patterns into sharp

Ngày đăng: 06/08/2013, 17:28

TỪ KHÓA LIÊN QUAN

w