1. Back To Blog

Explain Lazy Loading in C#? (.NET Interview questions)

Lazy initialization is a process where objects are loaded when needed. So when the first call to the object happens it is loaded in the application.

System.Lazy<T>  is a generic wrapper class by which we can implement lazy loading. Lazy loading helps you to reduce the wastage of resources and memory requirements to improve performance.

Below is a nice .NET interview question video which explains how lazy loading can be implemented using Lazy<T> .

Shiv Prasad Koirala

Visit us @ www.questpond.com or call us at 022-66752917... read more

We are on Social