Parse()

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

Boxes the value of enumeration constant of the specified enumeration with the specified name. A parameter specifies if the case should be ignored when interpreting the string specifying the name of the enumeration constant.

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

Arguments

ParameterTypeDescription
typeconst TypeInfo&Specifies the type of the enumeration
strconst String&The name of the enumeration constant, value of which is to be boxed
ignoreCaseboolSpecifies if case should be ignored when interpreting the string representing the name of the enumeration constant

Return Value

A shared pointer to the object representing boxed value of the specified enumeration constant

BoxedValueBase::Parse(const TypeInfo&, const String&) method

Boxes the value of enumeration constant of the specified enumeration with the specified name.

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

Arguments

ParameterTypeDescription
typeconst TypeInfo&Specifies the type of the enumeration
strconst String&The name of the enumeration constant, value of which is to be boxed

Return Value

A shared pointer to the object representing boxed value of the specified enumeration constant

See Also