AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter18/Listing18.27.RuntimeBindingToXMLElementsWithoutDynamic.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter18.Listing18_27
{
    using System;
    using System.Linq;
    using System.Xml.Linq;

    public class Program
    {
        public static void Main()
        {
            XElement person = XElement.Parse(
                @"<Person>
                    <FirstName>Inigo</FirstName>
                    <LastName>Montoya</LastName>
                  </Person>");

            Console.WriteLine("{0} {1}",
              person.Descendants("FirstName").FirstOrDefault().Value,
              person.Descendants("LastName").FirstOrDefault().Value);
        }
    }
}
