I have following foreach loop , I want to skip first result and and get rest of it
foreach (String W in words)
{
...
}
How can I do this
I have following foreach loop , I want to skip first result and and get rest of it
foreach (String W in words)
{
...
}
How can I do this
Simple use Skip
extension method (using LINQ) like this:
foreach (String W in words.Skip(1))
{
...
}