Senior SOLID

How do you implement Lazy loading with design patterns?

Use the Proxy or Virtual Proxy pattern where a placeholder object controls access to the

real object and defers its creation until needed. In .NET, Lazy<T> provides built-in lazy

loading.

More from Design Patterns in C#

All questions for this course