Table of Contents

TryGetXmlElementAttribute Method

Definition

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

TryGetXmlElementAttribute(IDecorator<IHierarchy<object>>, out XmlElementAttribute)

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

public static bool TryGetXmlElementAttribute(this IDecorator<IHierarchy<object>> decorator, out XmlElementAttribute xmlAttribute)

Parameters

decorator IDecorator<IHierarchy<object>>

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

xmlAttribute XmlElementAttribute

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

Returns

bool

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