23
1
using System;
2
using System.Linq;
3
using System.Collections.Generic;
4
5
public class Program
6
{
7
public static void Main()
8
{
9
IList<string> strList = new List<string>() {
10
"Three",
11
"One",
12
"Two",
13
"Four",
14
"Five",
15
"Six" };
16
17
var result = strList.SkipWhile(s => s.Length < 4);
18
19
foreach(string str in result)
20
Console.WriteLine(str);
21
22
}
23
}
Cached Result
Three
One
Two
Four
Five
Six
One
Two
Four
Five
Six