using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program{ static void Main(string[] args) { string[] names = { "Zheng", "Smith"}; var queryResults = names.Where(n => n.StartsWith("S")); foreach (var item in queryResults) { Console.WriteLine(item); } } }