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