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.
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.