Singleton in Modern .NET: Lazy<T>, DI Lifetimes, Captive Dependencies and Thread Safety: back to the lessonSave
Practice test
Design Patterns in C#: Creational Patterns — Lesson Practice
Eight questions on module 2 of Design Patterns in C#: Factory Method, Abstract Factory and keyed services, Builder and Prototype with records, and Singleton as a DI lifetime. Trace code and spot lifetime bugs. Included in TechInterviewNotes Full Access.
- Questions
- 8
- Time
- 15 min
- Right answer
- +1
- Wrong answer
- 0
8 marks in all · pass mark 5
This test comes with TechInterviewNotes Full Access
Unlock all paid content on TechInterviewNotes.
From the lesson Singleton in Modern .NET: Lazy<T>, DI Lifetimes, Captive Dependencies and Thread Safety