Design Patterns in C# and .NET

20h 15m 1s
English
Free
April 29, 2024
Discover the modern implementation of design patterns with C# and .NET. This course provides an overview of all the Gang of Four (GoF) design patterns as outlined in their seminal book, together with modern-day variations, adjustments, discussions of intrinsic use of patterns in the language.
More

This course provides a comprehensive overview of Design Patterns in C# and .NET from a practical perspective. This course in particular covers patterns with the use of:

  • The latest versions of C# and the .NET framework
  • Use of modern programming approaches: dependency injection, reactive programming and more
  • Use of modern developer tools such as ReSharper
  • Discussions of pattern variations and alternative approaches

What are Design Patterns?

Design Patterns are reusable solutions to common programming problems. They were popularized with the 1994 book Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, John Vlissides, Ralph Johnson and Richard Helm (who are commonly known as a Gang of Four, hence the GoF acronym).

The original book was written using C++ and Smalltalk as examples, but since then, design patterns have been adapted to every programming language imaginable: C#, Java, PHP and even programming languages that aren't strictly object-oriented, such as JavaScript.

The appeal of design patterns is immortal: we see them in libraries, some of them are intrinsic in programming languages, and you probably use them on a daily basis even if you don't realize they are there.

What Patterns Does This Course Cover?

This course covers all the GoF design patterns. In fact, here's the full list of what is covered:

  • SOLID Design Principles: Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle and Dependency Inversion Principle
  • Creational Design Patterns: Builder, Factories (Factory Method and Abstract Factory), Prototype and Singleton
  • Structrural Design Patterns: Adapter, Bridge, Composite, Decorator, Façade, Flyweight and Proxy
  • Behavioral Design Patterns: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Null Object, Observer, State, Strategy, Template Method and Visitor

Who Is the Course For?

This course is for .NET/C# developers who want to see not just textbook examples of design patterns, but also the different variations and tricks that can be applied to implement design patterns in a modern way. For example, the introduction of the DLR allows us to use an ImpromptuObject, so that our DynamicObject exposes any interface we desire. This allows for dynamic programming, and many design patterns are presented in terms of their static and DLR-based variations.

Presentation Style

This course is presented as a (very large) series of live demonstrations being done in Microsoft Visual Studio. Most demos are single-file, so you can download the file attached to the lesson and run it in Visual Studio, Visual Studio Code, Rider or another IDE of your choice.

This course does not use UML class diagrams; all of demos are live coding. I use Visual Studio, various NuGet packages, R# unit test runner and even dotMemoryUnit.

Requirements:
  • Good understanding of C#
  • Familiarity with latest C# features
  • Good understanding of object-oriented design principles
Who this course is for:
  • Beginner and experienced developers
  • Anyone interested in design patterns

What you'll learn:

  • Recognize and apply design patterns
  • Refactor existing designs to use design patterns
  • Reason about applicability and usability of design patterns

Watch Online Design Patterns in C# and .NET

0:00
/
#1: Introduction
# Title Duration

Similar courses to Design Patterns in C# and .NET

Blazor Bootcamp - .NET 6 (WASM and Server)

Blazor Bootcamp - .NET 6 (WASM and Server)

Duration 15 hours 36 minutes 29 seconds
From Zero to Hero: REST APIs in .NET

From Zero to Hero: REST APIs in .NET

Duration 4 hours 42 minutes 8 seconds
Getting Started: Clean Architecture in .NET

Getting Started: Clean Architecture in .NET

Duration 3 hours 10 minutes 59 seconds
Resource Library

Resource Library

Duration 44 minutes 22 seconds
Building .NET REST APIs

Building .NET REST APIs

Duration 10 hours 42 minutes 54 seconds
Deep Dive: Modular Monoliths in .NET

Deep Dive: Modular Monoliths in .NET

Duration 4 hours 21 minutes 31 seconds
From Zero to Hero: Unit testing for C# Developers

From Zero to Hero: Unit testing for C# Developers

Duration 3 hours 39 minutes 32 seconds
Unlock The Power Of Microservices In The Azure Cloud

Unlock The Power Of Microservices In The Azure Cloud

Duration 9 hours 5 minutes 43 seconds
Getting Started: GraphQL in .NET

Getting Started: GraphQL in .NET

Duration 7 hours 38 minutes 35 seconds