Method TryGetValue
TryGetValue<T>(string, out T)
Attempts to get the value associated with the specified key, parsed as the specified type using invariant culture formatting.
Declaration
public bool TryGetValue<T>(string key, out T value) where T : IParsable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| T | value |
Returns
| Type | Description |
|---|---|
| bool |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| FormatException | The key was found but parsing failed. |