Table of Contents

Add Method

Definition

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

Add(T)

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

public IHierarchy<T> Add(T instance)

Parameters

instance T

The instance to a node in the hierarchical structure represents.

Returns

IHierarchy<T>

A reference to the newly added hierarchical node.

Add(T, Type)

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

public IHierarchy<T> Add(T instance, Type instanceType)

Parameters

instance T

The instance to a node in the hierarchical structure represents.

instanceType Type

The type of instance.

Returns

IHierarchy<T>

A reference to the newly added hierarchical node.

Exceptions

ArgumentNullException

instanceType is null.

Add(T, MemberInfo)

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

public IHierarchy<T> Add(T instance, MemberInfo member)

Parameters

instance T

The instance to a node in the hierarchical structure represents.

member MemberInfo

The member from where instance was referenced.

Returns

IHierarchy<T>

A reference to the newly added hierarchical node.

Add(T, Type, MemberInfo)

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

public IHierarchy<T> Add(T instance, Type instanceType, MemberInfo member)

Parameters

instance T

The instance to a node in the hierarchical structure represents.

instanceType Type

The type of instance.

member MemberInfo

The member from where instance was referenced.

Returns

IHierarchy<T>

A reference to the newly added hierarchical node.

Exceptions

ArgumentNullException

instanceType is null.