GetValueOf()

EnumValues::GetValueOf(const String&, bool) const method

Returns boxed value of the enum constant with the specified name.

virtual SharedPtr<Object> System::EnumValues<E, Guard>::GetValueOf(const String &str, bool ignoreCase) const override

Arguments

ParameterTypeDescription
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

A boxed value of the enum constant whose name is specified in str.

EnumValues::GetValueOf(long) const method

Returns boxed value of the enum constant with the specified value.

virtual SharedPtr<Object> System::EnumValues<E, Guard>::GetValueOf(long val) const override

Arguments

ParameterTypeDescription
vallongThe value of the enum constant

Return Value

A boxed value of the enum constant whose vakye is specified in str.

See Also