Table of Contents

TryGetXmlTextAttribute Method

Definition

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

TryGetXmlTextAttribute(IDecorator<IHierarchy<object>>, out XmlTextAttribute)

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

public static bool TryGetXmlTextAttribute(this IDecorator<IHierarchy<object>> decorator, out XmlTextAttribute xmlAttribute)

Parameters

decorator IDecorator<IHierarchy<object>>

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

xmlAttribute XmlTextAttribute

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

Returns

bool

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