16
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>(){ "One", "Two", "Three", "Four", "Five" };
10
11
var newList = strList.Take(2);
12
13
foreach(var str in newList)
14
Console.WriteLine(str);
15
}
16
}
Cached Result
Sum is 470