17
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>(){ "Three", "Four", "Five", "Hundred" };
10
11
var newList = strList.TakeWhile(s => s.Length > 4);
12
13
foreach(var str in newList)
14
Console.WriteLine(str);
15
16
}
17
}
Cached Result