Table of Contents

OrderByXmlAttributes Method

Definition

Namespace
Cuemon.Xml
Assemblies
Cuemon.Xml.dll
Source
src/Cuemon.Xml/Extensions/HierarchyDecoratorExtensions.cs

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

decorator IDecorator<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

T

The type of the node represented in the hierarchical structure.

Exceptions

ArgumentNullException

decorator cannot be null.