Introduction to LINQ
2/16/2008

In this video Mohammad Azam gives an introduction to the Microsoft LINQ framework.


In this video Mohammad Azam gives an introduction to the Microsoft LINQ framework.

Code from the Video:

static void Main(string[] args)
        {
            string[] names = { "Azam", "John", "Christoper", "Jerry" };

            var persons = from n in names
                          select new
                          {
                              FirstName = n
                          };

            foreach (var person in persons)
            {
                Console.WriteLine(person.FirstName);
            }

        }

[Play the video]