Skip to content
Search lessons, topics, tests…
Esc

    ↑ ↓ moveEnter openEsc close
    Architecture and System Design: back to the track

    Guided course · Architecture and System Design

    Design Patterns in C#: The .NET Interview Guide

    • When to use each pattern, and when not to.
    • C#/.NET 10 examples and before-and-after refactors.
    • SOLID, dependency injection and key trade-offs.
    • Interview questions and common mistakes.
    Intermediate6 modules · 20 lessons · 6 h 21 min · 23 practice tests · 2 free

    Module 1 · Foundations: Patterns, SOLID and Judgment

    2 lessons · 34 min
    1. 01Design Patterns in .NET Interviews: What They Are, the Patterns You Already Use, and How to Choose OneFree16 min
    2. 02SOLID in Modern C#: The Five Principles as the Foundation for Every Pattern, With a Real RefactorFree, 1 practice test18 min

    Module 2 · Creational Patterns

    3 lessons · 54 min
    1. 03Factory Method and Abstract Factory in C#: From switch Statements to Keyed Services (included with Full Access), 1 practice test18 min
    2. 04Builder and Prototype in C#: Fluent Builders, required and init, Records and the Shallow-Copy Trap (included with Full Access), 1 practice test17 min
    3. 05Singleton in Modern .NET: Lazy<T>, DI Lifetimes, Captive Dependencies and Thread Safety (included with Full Access), 2 practice tests19 min

    Module 3 · Structural Patterns

    4 lessons · 1 h 15 min
    1. 06Adapter and Facade in C#: Wrapping Vendor SDKs, Callback APIs and Subsystems Behind Interfaces You Own (included with Full Access), 1 practice test20 min
    2. 07Decorator in C# and .NET DI: Caching, Logging and Retry Without Touching the Class, Plus DelegatingHandler (included with Full Access), 1 practice test18 min
    3. 08Proxy in C#: Protection, Virtual and Dynamic Proxies with DispatchProxy, and Where .NET Generates Them for You (included with Full Access), 1 practice test18 min
    4. 09Composite in C#: Trees of Parts and Wholes, Product Bundles, Rule Trees, and Where .NET Uses It (included with Full Access), 2 practice tests19 min

    Module 4 · Behavioral Patterns: Algorithms, State and Requests

    4 lessons · 1 h 13 min
    1. 10Strategy in C#: Replacing switch Statements with Interchangeable Algorithms, DI Registries and Delegates (included with Full Access), 1 practice test17 min
    2. 11Template Method in C#: Fixed Algorithms With Overridable Steps, BackgroundService, and When to Prefer Composition (included with Full Access), 1 practice test17 min
    3. 12State Pattern in C#: Order Lifecycles, Invalid Transitions, and Transition Tables With Tuple Patterns (included with Full Access), 1 practice test18 min
    4. 13Command Pattern in C#: Undo and Redo, Queued Commands With Channels, Idempotency and CQRS Commands (included with Full Access), 2 practice tests21 min

    Module 5 · Behavioral Patterns: Communication and Pipelines

    4 lessons · 1 h 11 min
    1. 14Observer in C#: Events, IObservable<T>, Safe Unsubscription, Handler Isolation and In-Process Domain Events (included with Full Access), 1 practice test18 min
    2. 15Mediator in C# and MediatR: Requests, Notifications, Pipeline Behaviors, and When a Mediator Is Overkill (included with Full Access), 1 practice test17 min
    3. 16Chain of Responsibility in .NET: ASP.NET Core Middleware, Short-Circuiting, Ordering and Handler Pipelines (included with Full Access), 1 practice test17 min
    4. 17Visitor and Pattern Matching in C#: Double Dispatch, Expression Trees, ExpressionVisitor and Switch Expressions (included with Full Access), 2 practice tests19 min

    Module 6 · Judgment, Practice and Mock Interview

    3 lessons · 1 h 14 min
    1. 18When Not to Use Patterns: Anti-Patterns, Over-Engineering, and Modern C# Alternatives That Replace Them (included with Full Access), 1 practice test17 min
    2. 19Design Patterns Practice Set: 10 Drills on Finding, Fixing and Choosing Patterns in Real C# Code (included with Full Access), 1 practice test22 min
    3. 20Final Mock Interview: 25 Questions on Design Patterns, SOLID and Modern C# for .NET Interviews (included with Full Access)35 min

    Practice tests

    TechInterviewNotes Editorial Team ·