protected T GetToolOption<T>( string key, T defaultValue, T differentValue )
Protected Function GetToolOption(Of T)( _ ByVal key As String, _ ByVal defaultValue As T, _ Optional ByVal differentValue As T _ ) As T
Parameters
- key
- the key that identifies the tool option
- defaultValue
- a value to be returned if the key is not present within the current ToolOptions
- differentValue
- an optional value to be returned when multiple (different) values are present - this can only happen in the case of multiple selected templates in TemplateProperties
Type Parameters
- T
- the type of the value to be obtained; normally this will be a nullable type in order to accommodate the possibility of multiple different values
Return Value
the value found, or defaultValue, or differentValue