Table of Contents: 1. What are Design Patterns?; 2. Syntax of the C# Language; 3.WritingWindows C# Programs; 4. Using Classes and Objects in C#; 5. Inheritance; 6.UML Diagrams; 7. Arrays, Files and Exceptions in C#; 8. The Simple Factory Pattern; 9.The Factory Method; 10. The Abstract Factory Pattern; 11. The Singleton Pattern; 12.The Builder Pattern; 13. The Prototype Pattern; 14. The Adapter Pattern; 15. The Bridge Pattern; 16. The Composite Pattern; 17. The Decorator Pattern; 18. The Façade Pattern; 19. The Flyweight Pattern; 20. The Proxy Pattern; 21. Chain of Responsibility; 22. The Command Pattern; 23. The Interpreter Pattern; 24. The Iterator Pattern; 25. The Mediator Pattern; 26. The Memento Pattern; 27. The Observer Pattern; 28. The State Pattern; 29. The Strategy Pattern; 30. The Template Method Pattern; 31. The Visitor Pattern; 32. Bibliography.
This tutorial begins with clear and concise introductions to C#, object-oriented programming and inheritance, and UML diagrams. Each chapter that follows describes one of twenty-three design patterns, recommends when to use it, and explains the impact that it will have on the larger design. The use of every pattern is demonstrated with simple example programs. These programs are illustrated with screen shots and UML diagrams displaying how the classes interact. Including four parts such as Object-Oriented Programming in C#, Creational Patterns, Structural Patterns, Behavioral Patterns.
Presenting C# meet Design Patterns such as Structural patterns: decorator, proxy and bridge, composite and flyweight, adapter and facade; Creational patterns: Prototype, factory method, singleton, abstract factory and builder; Behavioral patterns: Strategy, state and template method, chain of responsibility and command, ...