GetXmlQualifiedEntity Method
Definition
- Assemblies
- Cuemon.Xml.dll
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
decoratorIDecorator<IHierarchy<object>>The decorator that wraps the IHierarchy<T> to extend.
qualifiedEntityXmlQualifiedEntityThe optional XmlQualifiedEntity that is part of the equation.
Returns
- XmlQualifiedEntity
An XmlQualifiedEntity that is either from
qualifiedEntity, embedded withindecorator, XmlRootAttribute, XmlElementAttribute, XmlAttributeAttribute or resolved from either member name or member type (in that order).
Exceptions
- ArgumentNullException
decoratorcannot be null.