Method TryGetValue
TryGetValue<T>(string, out T)
Tries to get the value of a variable of a specified type.
Declaration
public bool TryGetValue<T>(string variableName, out T value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | variableName | The name of the variable. |
| T | value |
Returns
| Type | Description |
|---|---|
| bool | true if the variable was found; otherwise, false. |
Type Parameters
| Name | Description |
|---|---|
| T | The expected type of the variable's value. |