Gets the value of an option, if the option is set, or a specified default value otherwise.
Namespace: CryptSharpAssembly: CryptSharp (in CryptSharp.dll) Version: 2.0.0.0
Syntax
public T GetValue<T>( CrypterOptionKey key, T defaultValue )
Parameters
- key
- Type: CryptSharp CrypterOptionKey
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
The option's value.See Also