System::BoxedValueBase::Parse method

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)
ParameterTypeDescription
typeconst TypeInfo&Specifies the type of the enumeration
strconst String&The name of the enumeration constant, value of which is to be boxed

ReturnValue

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

See Also

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)
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

ReturnValue

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

See Also