000 04713nam a2200217Ia 4500
999 _c634
_d634
001 1967
005 20200706113204.0
008 180531s9999||||xx |||||||||||||| ||und||
020 _a9788177589146
040 _cPK-IsLIS
082 _a005.133
_bM5949
100 _aMetsker, Steven John
245 0 _aDesign patterns in C#
_c/ Steven John Metsker
260 _bPearson Education,
_aNew Delhi :
_c2008
300 _axv, 456 p.
490 _aSoftware patterns series
500 _aincludes glossary, bibliography and index
650 _aC# (Computer program language)
942 _cBK
505 0 _aPreface. 1. Introduction. Why patterns? Why design patterns? Why c#? Uml. Challenges. The organization of this book. Welcome to oozinoz! Summary. I. Interface patterns. 2. Introducing interfaces. Interfaces and abstract classes. Interfaces and delegates. Interfaces and properties. Interface details. Summary. Beyond ordinary interfaces. 3. Adapter. Adapting to an interface. Class and object adapters. Adapting data in .net. Summary. 4. Facade. An ordinary facade. Refactoring to facade. Facades, utilities, and demos. Summary. 5. Composite. An ordinary composite. Recursive behavior in composites. Composites, trees, and cycles. Composites with cycles. Consequences of cycles. Summary. 6. Bridge. An ordinary abstraction. From abstraction to bridge. Drivers as bridges. Database drivers. Summary. Ii. Responsibility patterns. 7. Introducing responsibility. Ordinary responsibility. Controlling responsibility with accessibility. Summary. Beyond ordinary responsibility. 8. Singleton. Singleton mechanics. Singletons and threads. Recognizing singleton. Summary. 9. Observer. C# support for observer. Delegate mechanics. A classic example-observer in guis. Model/view/controller. Layering. Summary. 10. Mediator. A classic example-gui mediators. Relational integrity mediators. Summary. 11. Proxy. A simple proxy. A data proxy. Remote proxies. Summary. 12. Chain of responsibility. An ordinary chain of responsibility. Refactoring to chain of responsibility. Anchoring a chain. Chain of responsibility without composite. Summary. 13. Flyweight. Immutability. Extracting the immutable part of a flyweight. Sharing flyweights. Summary. Iii. Construction patterns. 14. Introducing construction. A few construction challenges. Summary. Beyond ordinary construction. 15. Builder. An ordinary builder. Building under constraints. A forgiving builder. Summary. 16. Factory method. A classic example-enumerators. Recognizing factory method. Taking control of which class to instantiate. Factory method in parallel hierarchies. Summary. 17. Abstract factory. A classic example-gui kits. Abstract factories and factory method. Namespaces and abstract factories. Summary. 18. Prototype. Prototypes as factories. Prototyping with clones. Summary. 19. Memento. A classic example-using memento for undo. Memento durability. Persisting mementos across sessions. Summary. Iv. Operation patterns. 20. Introducing operations. Operations and methods. Signatures. Delegates. Exceptions. Algorithms and polymorphism. Summary. Beyond ordinary operations. 21. Template method. A classic example-sorting. Completing an algorithm. Template method hooks. Refactoring to template method. Summary. 22. State. Modeling states. Refactoring to state. Making states constant. Summary. 23. Strategy. Modeling strategies. Refactoring to strategy. Comparing strategy and state. Comparing strategy and template method. Summary. 24. Command. A classic example-menu commands. Using command to supply a service. Command hooks. Command in relation to other patterns. Summary. 25. Interpreter. An interpreter example. Interpreters, languages, and parsers. Summary. V. Extension patterns. 26. Introducing extensions. Principles of oo design. The liskov substitution principle. The law of demeter. Removing code smells. Beyond ordinary extensions. Summary. 27. Decorator. A classic example-streams. Function wrappers. Decorator in guis. Decorator in relation to other patterns. Summary. 28. Iterator. Ordinary iteration. Thread-safe iteration. Iterating over a composite. Summary. 29. Visitor. Visitor mechanics. An ordinary visitor. Visitor cycles. Visitor controversy. Summary. Appendix a: directions. Get the most out of this book. Understand the classics. Weave patterns into your code. Keep learning. Appendix b: solutions. Appendix c: oozinoz source. Acquiring and using the source. Building the oozinoz code. Helping the oozinoz code find files. Testing the code with nunit. Finding files yourself. Summary. Appendix d: uml at a glance. Classes. Class relationships. Interfaces. Delegates and events. Objects. States. Glossary. Bibliography. Index.