Method GetComponentOrDefault
GetComponentOrDefault(Type)
Get a component value if found, default value otherwise.
Declaration
public TComponent GetComponentOrDefault(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
TComponent | The component value if found, default value otherwise. |
GetComponentOrDefault<T>()
Get a component value if found, default value otherwise.
Declaration
public T GetComponentOrDefault<T>() where T : TComponent
Returns
Type | Description |
---|---|
T | The component value if found, default value otherwise. |
Type Parameters
Name | Description |
---|---|
T |