 | StringXTryParseNumberStringAsEnum Method |
Tries to parse the specified numberString into an enum value of the specified
enumType.
Namespace: CandlelightAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxpublic 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