RhinoCommon API
PersistentSettingsConverterTryParseEnum Method (Type, String, String) |
Converts an enum value string (integer as string) to
a enum value name.
Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll)
public static bool TryParseEnum( Type type, string intValueAsString, out string value )
Public Shared Function TryParseEnum ( type As Type, intValueAsString As String, <OutAttribute> ByRef value As String ) As Boolean
Parameters
- type
- Type: SystemType
The enum type - intValueAsString
- Type: SystemString
enum integer value as string - value
- Type: SystemString
Output value, will be null on error
Return Value
Type: BooleanReturns true if the the successfully converted or false if not.