Design Patterns in C#: A Hands-on Guide with Real-World Examples
- Length: 438 pages
- Edition: 1st ed.
- Language: English
- Publisher: Apress
- Publication Date: 2018-08-14
- ISBN-10: 1484236394
- ISBN-13: 9781484236390
- Sales Rank: #690854 (See Top 100 Books)
Get hands-on experience with each Gang of Four design pattern using the latest version of C# (Visual Studio Community 2017). For each of the patterns, you’ll see at least one real-world scenario, a coding example, and a complete implementation including output.
In the first part of Design Patterns in C#, you will cover the 23 Gang of Four (GoF) design patterns, before moving onto some alternative design patterns, including the Simple Factory Pattern, the Null Object Pattern, and the MVC Pattern. The final part winds up with a conclusion and criticisms of design patterns with chapters on anti-patterns and memory leaks. By working through easy-to-follow examples, you will understand the concepts in depth and have a collection of programs to port over to your own projects.
Along the way, the author discusses the different creational, structural, and behavioral patterns and why such classifications are useful. In each of these chapters, there is a Q&A session that clears up any doubts and covers the pros and cons of each of these patterns.He finishes the book with FAQs that will help you consolidate your knowledge. This book presents the topic of design patterns in C# in such a way that anyone can grasp the idea.
What You Will Learn
- Work with each of the design patterns
- Implement the design patterns in real-world applications
- Select an alternative to these patterns by comparing their pros and cons
- Use Visual Studio Community Edition 2017 to write code and generate output
Who This Book Is For
Software developers, software testers, and software architects.
Table of Contents
Part I: Gang of Four Design Patterns
Chapter 1: Singleton Pattern
Chapter 2: Prototype Pattern
Chapter 3: Builder Pattern
Chapter 4: Factory Method Pattern
Chapter 5: Abstract Factory Pattern
Chapter 6: Proxy Pattern
Chapter 7: Decorator Pattern
Chapter 8: Adapter Pattern
Chapter 9: Facade Pattern
Chapter 10: Flyweight Pattern
Chapter 11: Composite Pattern
Chapter 12: Bridge Pattern
Chapter 13: Visitor Pattern
Chapter 14: Observer Pattern
Chapter 15: Strategy (Policy) Pattern
Chapter 16: Template Method Pattern
Chapter 17: Command Pattern
Chapter 18: Iterator Pattern
Chapter 19: Memento Pattern
Chapter 20: State Pattern
Chapter 21: Mediator Pattern
Chapter 22: Chain of Responsibility Pattern
Chapter 23: Interpreter Pattern
Part II: Additional Design Patterns
Chapter 24: Simple Factory Pattern
Chapter 25: Null Object Pattern
Chapter 26: MVC Pattern
Part III: Final Thoughts on Design Patterns
Chapter 27: Criticisms of Design Patterns
Chapter 28: Anti-patterns
Chapter 29: Sealing the Leaks in Your Applications
Chapter 30: FAQ
Appendix A: Brief Overview of GoF Design Patterns
Appendix B: Some Useful Resources
Appendix C: The Road Ahead