Table of Contents

IsNodeEnumerable Method

Definition

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

IsNodeEnumerable(IDecorator<IHierarchy<object>>)

Determines whether the underlying IHierarchy<T> of the decorator implements either IEnumerable or IEnumerable<T> and is not a string.

public static bool IsNodeEnumerable(this IDecorator<IHierarchy<object>> decorator)

Parameters

decorator IDecorator<IHierarchy<object>>

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

Returns

bool

true if the underlying IHierarchy<T> of the decorator implements either IEnumerable or IEnumerable<T> and is not a string; otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null.