Click or drag to resize
StringXTryParseNumberStringAsEnum Method
Tries to parse the specified numberString into an enum value of the specified enumType.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static bool TryParseNumberStringAsEnum(
	Type enumType,
	string numberString,
	out Object enumValue
)

Parameters

enumType
Type: SystemType
A Enum type.
numberString
Type: SystemString
A String that has serialized an enum value using a decimal number.
enumValue
Type: SystemObject
numberString as enumType if successful; otherwise, the default value of enumType.

Return Value

Type: Boolean
, if numberString was successfully parsed; otherwise, .
See Also