using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program
{
staticvoid Main(string[] args)
{
string[] names = { "Alonso", "Zheng", "Smith" };
var queryResults =
from n in names
where n.StartsWith("S")
select n;
foreach (var item in queryResults)
{
Console.WriteLine(item);
}
}
}