Skip to main content
  • Book
  • © 2020

Design Patterns in C#

A Hands-on Guide with Real-world Examples

Apress

Authors:

  • Includes 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
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

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-xxxv
  2. Gang of Four Design Patterns

    1. Front Matter

      Pages 1-1
    2. Singleton Pattern

      • Vaskaran Sarcar
      Pages 3-26
    3. Prototype Pattern

      • Vaskaran Sarcar
      Pages 27-55
    4. Builder Pattern

      • Vaskaran Sarcar
      Pages 57-79
    5. Factory Method Pattern

      • Vaskaran Sarcar
      Pages 81-96
    6. Abstract Factory Pattern

      • Vaskaran Sarcar
      Pages 97-110
    7. Proxy Pattern

      • Vaskaran Sarcar
      Pages 111-126
    8. Decorator Pattern

      • Vaskaran Sarcar
      Pages 127-142
    9. Adapter Pattern

      • Vaskaran Sarcar
      Pages 143-161
    10. Facade Pattern

      • Vaskaran Sarcar
      Pages 163-176
    11. Flyweight Pattern

      • Vaskaran Sarcar
      Pages 177-198
    12. Composite Pattern

      • Vaskaran Sarcar
      Pages 199-210
    13. Bridge Pattern

      • Vaskaran Sarcar
      Pages 211-232
    14. Visitor Pattern

      • Vaskaran Sarcar
      Pages 233-267
    15. Observer Pattern

      • Vaskaran Sarcar
      Pages 269-286
    16. Strategy Pattern

      • Vaskaran Sarcar
      Pages 287-298
    17. Template Method Pattern

      • Vaskaran Sarcar
      Pages 299-313
    18. Command Pattern

      • Vaskaran Sarcar
      Pages 315-335
    19. Iterator Pattern

      • Vaskaran Sarcar
      Pages 337-354

About this book

Get hands-on experience with each Gang of Four (GoF) design pattern using C#. For each of the patterns, you will see at least one real-world scenario, a coding example, and a complete implementation including output. In addition to GoF patterns, you will learn additional design patterns which are common and equally important.


In this second edition, you will go through the design patterns and their implementation in Visual Studio 2019 and C# 8. Common patterns in asynchronous programming are covered, including the TAP pattern and APM pattern. You will learn via easy-to-follow examples and understand the concepts in depth. With these updated patterns, you will have a collection of programs to port over to your own projects.


The book begins with the 23 GoF design patterns, and then moves onto alternative design patterns, including the Simple Factory, Null Object, and MVC patterns plus various patterns in asynchronous programming. Thebook concludes with a discussion of the criticisms of design patterns and chapters on anti-patterns.


Each chapter includes a Q&A session that clears up any doubts and covers the pros and cons of each pattern. FAQs will help you consolidate your knowledge. 




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 2019 to write code and generate output



Who This Book Is For



Software developers, testers, and architects


Authors and Affiliations

  • Garia, Kolkata, India

    Vaskaran Sarcar

About the author

Vaskaran Sarcar obtained his Master of Engineering in software engineering from Jadavpur University, Kolkata (India) and an MCA from Vidyasagar University, Midnapore (India). He was a National Gate Scholar (2007-2009) and has more than 12 years of experience in Education and the IT industry. Vaskaran devoted his early years (2005-2007) in teaching at various engineering colleges, and later he joined HP India PPS R&D Hub Bangalore .He worked there until August, 2019. At the time of his retirement from the IT industry, he was a Senior Software Engineer and Team Lead at HP. To follow his dream and passion, Vaskaran is now an independent full-time author. Other books by him include: • Getting Started with Advanced C# (Apress,2020) • Interactive Object-Oriented Programming in Java Second Edition (Apress,2019) • Java Design Patterns Second Edition (Apress,2019) • Design Patterns in C# (Apress,2018) • Interactive C# (Apress,2017) • Interactive Object-Oriented Programming in Java(Apress,2016) • Java Design Patterns(Apress,2016) • C# Basics: Test Your Skills(Createspace,2015) • Operating System: Computer Science Interview Series(Createspace,2014)

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
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access