ToObject()

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)

Arguments

ParameterTypeDescription
typeconst TypeInfo&The enumeration type to return.
valueuint64_tThe value to convert to an enumeration member.

Return Value

An instance of the enumeration set to value.

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)

Arguments

ParameterTypeDescription
typeconst TypeInfo&The enumeration type to return.
valueconst SharedPtr<Object>&The value convert to an enumeration member.

Return Value

An enumeration object whose value is value.

See Also