System::EnumValuesBase::ToObject method

EnumValuesBase::ToObject(const TypeInfo&, const SharedPtr<Object>&) method

Converts the specified object with an integer value to an enumeration member.

static SharedPtr<Object> System::EnumValuesBase::ToObject(const TypeInfo &type, const SharedPtr<Object> &value)
ParameterTypeDescription
typeconst TypeInfo&The enumeration type to return.
valueconst SharedPtr<Object>&The value convert to an enumeration member.

ReturnValue

An enumeration object whose value is value.

See Also

EnumValuesBase::ToObject(const TypeInfo&, uint64_t) method

Converts the specified 64-bit unsigned integer value to an enumeration member.

static SharedPtr<Object> System::EnumValuesBase::ToObject(const TypeInfo &type, uint64_t value)
ParameterTypeDescription
typeconst TypeInfo&The enumeration type to return.
valueuint64_tThe value to convert to an enumeration member.

ReturnValue

An instance of the enumeration set to value.

See Also