LINQ to XML Operators

At this point, I am deep into LINQ to XML, and you are probably starting to wonder, "When are we going to get to the part about queries?" If so, then I say, "Hold on to your null reference there, Shortcake, you have been seeing them." Throughout the previous chapter, I was performing LINQ to XML queries whether they were merely returning all the child elements of an element or obtaining all of the ancestors of a node. Do you remember seeing the XContainer.Elements method? Do you recall any examples where I called the XContainer.Elements method? If so, you saw a LINQ to XML query. As evidence yet again to the seamless integration of LINQ queries into the language, it is sometimes easy to overlook that you are performing ...

Get Pro LINQ: Language Integrated Query in C# 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.