Table of Contents

GetObjectHierarchy Method

Definition

Namespace
Cuemon.Extensions.Runtime
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/Runtime/Hierarchy.cs

GetObjectHierarchy(object, Action<HierarchyOptions>)

Gets the tree structure of the specified source wrapped in an IHierarchy<T> node representing a hierarchical structure.

public static IHierarchy<object> GetObjectHierarchy(object source, Action<HierarchyOptions> setup = null)

Parameters

source object

The source whose properties will be traversed while building the hierarchical structure.

setup Action<HierarchyOptions>

The HierarchyOptions which need to be configured.

Returns

IHierarchy<object>

An IHierarchy<T> node representing the entirety of a hierarchical structure from the specified source.

Exceptions

ArgumentNullException

source is null.