Senior .Net Developer Question:
Download Questions PDF

Explain me what are the deferred execution and the immediate execution in LINQ?

Answer:

A deferred execution encapsulates a query’s definition without executing it till the data is used at runtime. However, an immediate implementation calls the query at the same moment of its definition.

By default, the executions are deferred but we can do them immediately by calling “To List ()”. For example, in this way, a list of objects will be executed and returned to us when we define it.

Download Senior .Net Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know what are three common acronyms used in .NET, and what do they stand for?Tell me what is a “jagged array”?