OrderByXmlAttributes Method
Definition
- Namespace
- Cuemon.Extensions.Xml
- Assemblies
- Cuemon.Extensions.Xml.dll
OrderByXmlAttributes<T>(IEnumerable<IHierarchy<T>>)
Orders a sequence of IHierarchy<T> from hierarchies by nodes having an XmlAttributeAttribute decoration.
public static IEnumerable<IHierarchy<T>> OrderByXmlAttributes<T>(this IEnumerable<IHierarchy<T>> hierarchies)
Parameters
hierarchiesIEnumerable<IHierarchy<T>>The sequence of IHierarchy<T> values to extend.
Returns
- IEnumerable<IHierarchy<T>>
A sequence of IHierarchy<T> that is sorted by nodes having an XmlAttributeAttribute decoration first.
Type Parameters
TThe type of the node represented in the hierarchical structure.
Exceptions
- ArgumentNullException
hierarchiescannot be null.