Extensions Methods
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The Extensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
Ancestors<T>(IEnumerable<T>) | Returns a collection of elements that contains the ancestors of every node in the source collection. | |
Ancestors<T>(IEnumerable<T>, XName) | Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection. | |
AncestorsAndSelf(IEnumerable<XElement>) | Returns a collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection. | |
AncestorsAndSelf(IEnumerable<XElement>, XName) | Returns a filtered collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection. Only elements that have a matching XName are included in the collection. | |
Attributes(IEnumerable<XElement>) | Returns a collection of the attributes of every element in the source collection. | |
Attributes(IEnumerable<XElement>, XName) | Returns a filtered collection of the attributes of every element in the source collection. Only elements that have a matching XName are included in the collection. | |
DescendantNodes<T> | Returns a collection of the descendant nodes of every document and element in the source collection. | |
DescendantNodesAndSelf | Returns a collection of nodes that contains every element in the source collection, and the descendant nodes of every element in the source collection. | |
Descendants<T>(IEnumerable<T>) | Returns a collection of elements that contains the descendant elements of every element and document in the source collection. | |
Descendants<T>(IEnumerable<T>, XName) | Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. | |
DescendantsAndSelf(IEnumerable<XElement>) | Returns a collection of elements that contains every element in the source collection, and the descendent elements of every element in the source collection. | |
DescendantsAndSelf(IEnumerable<XElement>, XName) | Returns a filtered collection of elements that contains every element in the source collection, and the descendents of every element in the source collection. Only elements that have a matching XName are included in the collection. | |
Elements<T>(IEnumerable<T>) | Returns a collection of the child elements of every element and document in the source collection. | |
Elements<T>(IEnumerable<T>, XName) | Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. | |
InDocumentOrder<T> | Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. | |
Nodes<T> | Returns a collection of the child nodes of every document and element in the source collection. | |
Remove(IEnumerable<XAttribute>) | Removes every attribute in the source collection from its parent element. | |
Remove<T>(IEnumerable<T>) | Removes every node in the source collection from its parent node. |
Top