Method GetValue
GetValue(string)
Gets the value associated with the specified key.
public object? GetValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
GetValue<T>(string)
Gets the value associated with the specified key, and converts it to the specified type.
public T? GetValue<T>(string key)
Parameters
key
stringThe key of the value to get.
Returns
- T
The value associated with the specified key, converted to the specified type, or the default value for the type if the key is not found.
Type Parameters
T
The type to convert the value to.