Table of Contents

TryGetXmlRootAttribute Method

Definition

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

TryGetXmlRootAttribute(IDecorator<IHierarchy<object>>, out XmlRootAttribute)

Attempts to get an XmlRootAttribute from the underlying IHierarchy<T> of the decorator.

public static bool TryGetXmlRootAttribute(this IDecorator<IHierarchy<object>> decorator, out XmlRootAttribute xmlAttribute)

Parameters

decorator IDecorator<IHierarchy<object>>

The decorator that wraps the IHierarchy<T> to extend.

xmlAttribute XmlRootAttribute

When this method returns, contains the XmlRootAttribute associated with the underlying IHierarchy<T> of the decorator.

Returns

bool

true if underlying IHierarchy<T> of the decorator contains an XmlRootAttribute, false otherwise.