Lazy Initialisation with Lazy<T>

added by BlackWasp
9/4/2012 9:12:03 AM

2 Kicks, 256 Views

When working with resource intensive objects or types that are slow to instantiate, especially where those objects may not be required, it can be useful to only create the objects when first needed. This technique is known as lazy initialisation.


0 comments