[This is preliminary documentation and is subject to change.]
Attempts to parse a given key's value as an enumeration.
An ArgumentException is thrown if value could not be parsed.
Note the parsing is done in a case-insensitive way.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
| C# |
public static TEnum GetEnum<TEnum>( this ConfigKey key ) where TEnum : struct, new()
Parameters
- key
- ConfigKey
Type Parameters
- TEnum
- Enum to use for parsing. An ArgumentException will be thrown if this is not an enum.