OrderByXmlAttributes Method
Definition
- Assemblies
- Cuemon.Xml.dll
OrderByXmlAttributes<T>(IDecorator<IEnumerable<IHierarchy<T>>>)
Orders a sequence of IHierarchy<T> from the underlying sequence of IHierarchy<T> values of the decorator by nodes having an XmlAttributeAttribute decoration.
public static IEnumerable<IHierarchy<T>> OrderByXmlAttributes<T>(this IDecorator<IEnumerable<IHierarchy<T>>> decorator)
Parameters
decoratorIDecorator<IEnumerable<IHierarchy<T>>>The decorator that wraps 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
decoratorcannot be null.