Extensions.DescendantNodesAndSelf Method (IEnumerable<XElement>)
Returns a collection of nodes that contains every element in the source collection, and the descendant nodes of every element in the source collection.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
public static IEnumerable<XNode> DescendantNodesAndSelf( this IEnumerable<XElement> source )
Although Visual Basic has an integrated XML axis for descendant elements, there is no integrated axis for descendant nodes, so Visual Basic users must use this axis method explicitly.
This method uses deferred execution.
Available since 8
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1