Table of Contents

GetXmlQualifiedEntity Method

Definition

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

GetXmlQualifiedEntity(IDecorator<IHierarchy<object>>, XmlQualifiedEntity)

Resolves an XmlQualifiedEntity from either the specified qualifiedEntity or from the underlying IHierarchy<T> of the decorator.

public static XmlQualifiedEntity GetXmlQualifiedEntity(this IDecorator<IHierarchy<object>> decorator, XmlQualifiedEntity qualifiedEntity = null)

Parameters

decorator IDecorator<IHierarchy<object>>

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

qualifiedEntity XmlQualifiedEntity

The optional XmlQualifiedEntity that is part of the equation.

Returns

XmlQualifiedEntity

An XmlQualifiedEntity that is either from qualifiedEntity, embedded within decorator, XmlRootAttribute, XmlElementAttribute, XmlAttributeAttribute or resolved from either member name or member type (in that order).

Exceptions

ArgumentNullException

decorator cannot be null.