using System; using System.Linq; class Program { static void Main(string[] args) { string[] names = {"Jesse", "Donald", "Mary"}; var dNames = names.Where(n => n.StartsWith("D")); foreach (string foundName in dNames) { Console.WriteLine("Found: " + foundName); } } }