Method GetWithDefault
GetWithDefault(string, float)
Returns the parameter value for the specified key. Returns the default value provided if this parameter key does not have a value. Only returns a parameter value if it is of type float.
Declaration
public float GetWithDefault(string key, float defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The parameter key |
| float | defaultValue | Default value for this parameter. |
Returns
| Type | Description |
|---|---|
| float |