c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Linq

how to skip records in linq c#

| | Linq
This sample uses Skip to get all but the first 4 elements of the array.

public void LinqSkip()
{
int[] numbers = { 1, 3, 9, 8, 6, 7, 2, 0 };
var skiptwoNumbers = numbers.skip(2);
Console.WriteLine("skip 2 numbers:");
foreach (var n in skiptwoNumbers )
{
Console.WriteLine(n);
}
}

Result
skip 2 numbers:
9
8
6
7
2
0