Answers

Question and Answer:

  Home  Senior .Net Developer

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

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.

 163 views

More Questions for you: