Method GetComponentSource
GetComponentSource(Type, bool)
Get the source container from which the component value is coming from.
Declaration
public TContainer GetComponentSource(Type type, bool dependenciesOnly = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The component type. |
| bool | dependenciesOnly | If true, only look in dependencies, otherwise also look into this container. |
Returns
| Type | Description |
|---|---|
| TContainer | A container if component is found, null otherwise. |
GetComponentSource<T>(bool)
Get the source container from which the component value is coming from.
Declaration
public TContainer GetComponentSource<T>(bool dependenciesOnly = false) where T : TComponent
Parameters
| Type | Name | Description |
|---|---|---|
| bool | dependenciesOnly | If true, only look in dependencies, otherwise also look into this container. |
Returns
| Type | Description |
|---|---|
| TContainer | A container if component is found, null otherwise. |
Type Parameters
| Name | Description |
|---|---|
| T | The component type. |