Parse()

EnumValuesBase::Parse(const TypeInfo&, const String&, bool) method

Returns an object that represents a value of enumeration constant of the specified enumeration type with the specified name.

static SharedPtr<Object> System::EnumValuesBase::Parse(const TypeInfo &type, const String &str, bool ignoreCase)

Arguments

ParameterTypeDescription
typeconst TypeInfo&The TypeInfo object representing the type of the enumeration value to return
strconst String&The name of the enum constant
ignoreCaseboolSpecifeis if the case should be ignored when interpreting the name of the enum constant

Return Value

An object that represents the value of the enum constant whose name is specified in str.

See Also