Method SetComponent
SetComponent(Type, TComponent)
Set the value of a Type component on this container.
Declaration
public void SetComponent(Type type, TComponent value)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | Type of the component. |
| TComponent | value | Value of the component to set. |
SetComponent<T>(T)
Set the value of a T component on this container.
Declaration
public void SetComponent<T>(T value) where T : TComponent
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Value of the component to set. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the component. |