Skip to main content
  • Book
  • © 2018

Design Patterns in C#

A Hands-on Guide with Real-World Examples

Apress

Authors:

  • Contains full implementations of each pattern, along with snapshots of the Solution Explorer views and output
  • Presents real-world examples for each pattern
  • Uses simple and effective language to convey complex information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (30 chapters)

  1. Front Matter

    Pages i-xxx
  2. Gang of Four Design Patterns

    1. Front Matter

      Pages 1-1
    2. Singleton Pattern

      • Vaskaran Sarcar
      Pages 3-15
    3. Prototype Pattern

      • Vaskaran Sarcar
      Pages 17-29
    4. Builder Pattern

      • Vaskaran Sarcar
      Pages 31-41
    5. Factory Method Pattern

      • Vaskaran Sarcar
      Pages 43-54
    6. Abstract Factory Pattern

      • Vaskaran Sarcar
      Pages 55-67
    7. Proxy Pattern

      • Vaskaran Sarcar
      Pages 69-82
    8. Decorator Pattern

      • Vaskaran Sarcar
      Pages 83-96
    9. Adapter Pattern

      • Vaskaran Sarcar
      Pages 97-111
    10. Facade Pattern

      • Vaskaran Sarcar
      Pages 113-122
    11. Flyweight Pattern

      • Vaskaran Sarcar
      Pages 123-141
    12. Composite Pattern

      • Vaskaran Sarcar
      Pages 143-154
    13. Bridge Pattern

      • Vaskaran Sarcar
      Pages 155-164
    14. Visitor Pattern

      • Vaskaran Sarcar
      Pages 165-184
    15. Observer Pattern

      • Vaskaran Sarcar
      Pages 185-198
    16. Strategy (Policy) Pattern

      • Vaskaran Sarcar
      Pages 199-210
    17. Template Method Pattern

      • Vaskaran Sarcar
      Pages 211-222
    18. Command Pattern

      • Vaskaran Sarcar
      Pages 223-242
    19. Iterator Pattern

      • Vaskaran Sarcar
      Pages 243-255

About this book

Get hands-on experience with each Gang of Four design pattern using C#. 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. 


Authors and Affiliations

  • Whitefield, Bangalore, India

    Vaskaran Sarcar

About the author

Vaskaran Sarcar (ME (Software Engineering), MCA, B Sc. (Math)) is a Senior Software Engineer and Team Lead at HP India PPS R&D Hub Bangalore. He is the author of the books- Java Design Patterns, Interactive Object Oriented Programming in Java, Design Patterns in C#, Operating System: Computer Science Interview Series and C# Basics. He has more than 10 years of teaching and industry experience. He is also a national Gate scholar (2005-2007).



    

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access