LINQ // Skip and Take

Skip and Take^ are methods used to implement pagination or limit the number of elements returned by a query.

Skip is used to skip a specified number of elements from the beginning of a collection and return the remaining elements. "Take" is used to retrieve a specified number of elements from the beginning of a collection.

Since C# 8, you can also use the Range object with Take. The following picture demonstrates how concepts work together.

Linq image

LINQ explained with sketches - the eBook

After covering and collecting multiple parts of LINQ explained with sketches I bundled them all together in a small booklet with more explanation and code samples.

Therefore I present: LINQ explained with sketches - the eBook. Over 30 pages with smaller explanations and more LINQ operations than in my last post. Litte Bonus: There are interactive links with smaller examples to fiddle around with.

LINQ explained with sketches

Often times it is easier to have a nice illustration at hand, which explains you things the easy way. So let's do this for a lot of LINQ operations like Where, Select and friends.

Of course a small explanation will be attached as well.

Interactive LINQ tutorial, especially for beginners

LINQ (Language Integrated Query) is a powerful feature of C# that allows you to query data from different data sources. It is a must-have skill for every C# developer. That is why I created: https://linqmarbles.info/

An error has occurred. This application may no longer respond until reloaded. Reload x