The Take Method Takes elements up to a specified position starting from the first element in a sequence. Signature of Take:
Public static IEnumerable<TSource> Take<TSource>(this IEnumerable<TSource> source,int count);
Example:
int[] numbers = { 1, 5, 8, 4, 9, 3, 6, 7, 2, 0 };
var TakeFirstFiveElement = numbers.Take(5);
Output:
The Result is 1,5,8,4 and 9 To Get Five Element.