O'Reilly logo

Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required