What is lazy in c#?



What is lazy in c#?..

Answer / Umesh Kumar Jaiswal

In C#, Lazy<T> is a generic class that encapsulates a computed value or data source whose lifetime can be deferred until it's first used. This helps to avoid unnecessary computation and improve performance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What are the basics of c#?

1 Answers  


How can we convert XML Data to DataBase Table in C#.Net?

2 Answers   Wipro,


What framework is used for performance testing/load testing?

1 Answers   TCS,


Is list a collection c#?

1 Answers  


Why interface is required?

1 Answers  


What is c# used for in the industry?

1 Answers  


Consider the following pieces of C# code: a. interface I1 {/*......*/} interface I2 {/*......*/} struct Point : I1,I2 {/* ..... */} b. struct Book{ int bookId; struct Book b; } c. using M=Mystruct; struct MyStruct{ int id; } class MyClass{ static void Main(string[] args){ M m = new M(); } } d. struct Sample{ Sample ref x; } Which of the above are correct? Choose one of the options below. a, c and d are right a only right a and c are right d only wrong None of the listed options

3 Answers  


How do I create a single-file assembly?

1 Answers  


In dynamic link library, which api is used for load library?

1 Answers   C DAC,


What are variables in c#?

1 Answers  


Why do we need events in c#?

1 Answers  


What do multicast delegates mean?

1 Answers  


Categories