Helper class that provides functionality of converting a string representation of enum consnant into equivalent enum value.
More...
|
static E | Parse (const String &str, bool ignoreCase=false) |
| Converts the specfied string into equivalent enum constant value. More...
|
|
template<class E, class G, class Guard = void>
struct System::EnumParseHelper< E, G, Guard >
Helper class that provides functionality of converting a string representation of enum consnant into equivalent enum value.
- Template Parameters
-
E | The type of the enum with which the class' methods operate |
G | Second formal argument of System::Enum to use. |
Guard | Formal template argument to select parsing algorithm available. |
◆ Parse()
template<class E , class G , class Guard = void>
Converts the specfied string into equivalent enum constant value.
- Parameters
-
str | String that is interpreted as containing the name of enum constant |
ignoreCase | Specifies if the case should be ignored when interpreting the string |
- Returns
- The enumeration constant whose name is specified in
str
- Exceptions
-
ArgumentException | If the enum constant with name specifed in str was not found aboung the members of enum E . |