[This is preliminary documentation and is subject to change.]
Provides TryParse method, for parsing enumerations.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)
Syntax
| C# |
public static class EnumUtil
Members
| All Members | Methods |
| Member | Description | |
|---|---|---|
| TryParse<(Of <<'(TEnum>)>>)(String, TEnum%, Boolean) | Tries to parse a given value as an enumeration.
Even if value is numeric, this method still ensures that given number is among the enumerated constants.
This differs in behavior from Enum.Parse, which accepts any valid numeric string (that fits into enumeration's base type). |