LINQ C# Tutorial

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