CrypterOptionsGetValueT Method (CrypterOptionKey, T) | CryptSharp |
Gets the value of an option, if the option is set, or a specified default value otherwise.
Namespace: CryptSharp
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax
public T GetValue<T>( CrypterOptionKey key, T defaultValue )
Public Function GetValue(Of T) ( key As CrypterOptionKey, defaultValue As T ) As T
public: generic<typename T> T GetValue( CrypterOptionKey^ key, T defaultValue )
member GetValue : key : CrypterOptionKey * defaultValue : 'T -> 'T
Parameters
- key
- Type: CryptSharpCrypterOptionKey
The key of the option. - defaultValue
- Type: T
The default value if the option is not set.
Type Parameters
- T
- The type of the option's value.
Return Value
Type: TThe option's value.
See Also