GetObjectHierarchy Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
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
sourceobjectThe source whose properties will be traversed while building the hierarchical structure.
setupAction<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
sourceis null.