paint-brush
LINQ Query: Benefits of Deferred Executionby@samwalpole
173 reads

LINQ Query: Benefits of Deferred Execution

by Sam Walpole5mMay 5th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

LINQ (Language-Integrated Query) allows you to use a range of powerful querying capabilities directly in the C# language. Using LINQ, we can filter by age using Where, Map from a Person object to the name string using Select and Evaluate the query to a list using ToList. This is known as deferred execution, since you don't have to execute the query on the whole data set at once. This gives you additional power to create more complex queries. It is expected that deferred execution will result in better performance, since it doesn't need to be immediately executed.

Company Mentioned

Mention Thumbnail
featured image - LINQ Query: Benefits of Deferred Execution
Sam Walpole HackerNoon profile picture
Sam Walpole

Sam Walpole

@samwalpole

Fullstack .NET and JavaScript web developer. Coding teacher and advocate

About @samwalpole
LEARN MORE ABOUT @SAMWALPOLE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Sam Walpole HackerNoon profile picture
Sam Walpole@samwalpole
Fullstack .NET and JavaScript web developer. Coding teacher and advocate

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here