Click or drag to resize

ArchivableDictionaryGetEnumValueT Method (String)

Get an enum value from the dictionary using a custom key.

Namespace:  Rhino.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.4
Syntax
public T GetEnumValue<T>(
	string key
)
where T : struct, new(), IConvertible

Parameters

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:Rhino.Collections.ArchivableDictionary.GetEnumValue``1(System.String)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Rhino.Collections.ArchivableDictionary.GetEnumValue``1(System.String)"]

Return Value

Type: T

[Missing <returns> documentation for "M:Rhino.Collections.ArchivableDictionary.GetEnumValue``1(System.String)"]

Exceptions
ExceptionCondition
KeyNotFoundExceptionThrown when the key is not found in the dictionary.
FormatExceptionThrown when the string retrieved from the dictionary is not convertible to the enum type.
See Also