Lazy Initializer to defer expensive Object creation

added by learndotnet
9/20/2010 12:36:47 AM

0 Kicks, 37 Views

.NET 2010 comes with lots of new features. Some relates to Technology while other relates to language enhancements. The huge class library that is there with .NET framework is also enriched with new classes. In .NET 4.0 there is a new set of classes which introduces a new concept called Lazy initializes. Here is a discussion how simply you can use Lazy initialize to defer the execution of a method or property for values to whenever it is required.


0 comments