Ancestors « XML LINQ « C# / C Sharp






1.An Example of Calling the First Ancestors Prototype
2.Without Calling the Ancestors Operator
3.A More Concise Example of Calling the First Ancestors Prototype
4.Calling the Second Ancestors Prototype
5.XElement.AncestorsAndSelf returns a collection of elements
6.XElement.AncestorsAndSelf(XName) returns a filtered collection of elements that contain this element