... understanding of LINQ to Objects and just what LINQ can do for you, it’s time to learn about using LINQ to query and generate XML. This functionality is called LINQ to XML and, not so coincidentally, ... Sum PrototypeIEnumerable<int> ints = Enumerable.Range(1, 10);foreach (int i in ints) Console.WriteLine(i);Console.WriteLine(" ");int sum = ints.Sum();Console.WriteLine(sum); ... the same prototype but, this time, with elements in the input sequence, as shown in Listing 5-38.Listing 5-38. First Any Prototype Where Elements Are in the Source Input Sequencestring[] presidents...