| Input: | IEnumerable<TSource> |
| Lambda Expression: | int |
Skip discards the first n elements and emits the rest.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main()
{
string[] names = { "Java", "C#", "Javascript", "SQL", "Oracle", "Python", "C++", "C", "HTML", "CSS" };
IEnumerable<string> query = names.Skip(2);
foreach (string s in query)
{
Console.WriteLine(s);
}
}
}
The output:
Javascript
SQL
Oracle
Python
C++
C
HTML
CSS| ww_w._ja___v__a___2__s_.co__m__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |