ToHierarchy Method
Definition
- Assemblies
- Cuemon.Xml.dll
ToHierarchy(IDecorator<XmlReader>)
Converts the XML hierarchy of the enclosed XmlReader of the specified decorator into an IHierarchy<T>.
public static IHierarchy<DataPair> ToHierarchy(this IDecorator<XmlReader> decorator)
Parameters
decoratorIDecorator<XmlReader>The IDecorator<T> to extend.
Returns
- IHierarchy<DataPair>
An IHierarchy<T> implementation.
Exceptions
- ArgumentNullException
decoratorcannot be null.