TryGetXmlRootAttribute Method
Definition
- Assemblies
- Cuemon.Xml.dll
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
decoratorIDecorator<IHierarchy<object>>The decorator that wraps the IHierarchy<T> to extend.
xmlAttributeXmlRootAttributeWhen this method returns, contains the XmlRootAttribute associated with the underlying IHierarchy<T> of the
decorator.
Returns
- bool
trueif underlying IHierarchy<T> of thedecoratorcontains an XmlRootAttribute,falseotherwise.