Mid GoF Patterns

Lazy Initialization (with Thread Safety):?

  • As shown in the example, lazy initialization is used to create the instance only

when needed, with thread safety ensured by locking.

More from Design Patterns in C#

All questions for this course