Table of Contents

IHierarchy<T> Interface

Definition

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

Provides a generic way to expose a node of a hierarchical structure, including the node object of type T.

public interface IHierarchy<T> : IWrapper<T>, IData

Type Parameters

T

The type of the node represented in the hierarchical structure.

Inherited Members
Extension Methods

Properties

Name Description
Depth

Gets the current depth of the node in the hierarchical structure.

HasChildren

Indicates whether the current node has any child nodes.

HasParent

Indicates whether the current node has a parent node.

Index

Gets the zero-based index of the current node that this hierarchical structure represents.

this[int]

Gets the node at the specified index.

Methods

Name Description
Add(T)

Adds the specified instance to a node in the hierarchical structure representation.

Add(T, MemberInfo)

Adds the specified instance to a node in the hierarchical structure representation.

GetChildren()

Gets an IEnumerable<T> sequence that represents all the child nodes of the current hierarchical node.

GetParent()

Gets the parent node of the current node in the hierarchical structure.

GetPath()

Gets the hierarchical path of the node in the hierarchical structure.

GetPath(Func<IHierarchy<T>, string>)

Gets the hierarchical path of the node in the hierarchical structure.

Replace(T)

Allows for the instance on the current node to be replaced with a new instance.