Table of Contents

Replace Method

Definition

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

Replace(T)

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

public void Replace(T instance)

Parameters

instance T

The new instance to replace the original with.

Replace(T, Type)

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

public void Replace(T instance, Type instanceType)

Parameters

instance T

The new instance to replace the original with.

instanceType Type

The type of the new instance.