RhinoCommon API
ArchivableDictionaryGetEnumValueT Method |
Get an enum value
Namespace: Rhino.Collections
Assembly: RhinoCommon (in RhinoCommon.dll)

public T GetEnumValue<T>() where T : struct, new(), IConvertible
Public Function GetEnumValue(Of T As {Structure, New, IConvertible}) As T
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Rhino.Collections.ArchivableDictionary.GetEnumValue``1"]
Return Value
Type: T[Missing <returns> documentation for "M:Rhino.Collections.ArchivableDictionary.GetEnumValue``1"]

Exception | Condition |
---|---|
KeyNotFoundException | Thrown when the key is not found in the dictionary. |
FormatException | Thrown when the string retrieved from the dictionary is not convertible to the enum type. |

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14