using System;
using System.Collections;
using System.Linq;
using System.ComponentModel;
class MainClass
{
static void Main()
{
ArrayList list = new ArrayList { "First", "Second", "Third" };
var strings = from string entry in list
select entry.Substring(0, 3);
foreach (string start in strings)
{
Console.WriteLine(start);
}
}
}
|