Lazy Loading in C# 4.0

added by jacobsebastian
7/11/2011 6:09:31 AM

278 Views

Lazy loading is a pattern which delay initialization of object. C# 4.0 introduced new class which defers the creation of expensive objects when not in use. In this article I’ll explain the use of Lazy<T> class. Suppose we have Customer class and...


0 comments