Metodo System::EnumValuesBase::ToObject

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

Converte l’oggetto specificato con un valore intero in un membro di enumerazione.

static SharedPtr<Object> System::EnumValuesBase::ToObject(const TypeInfo &type, const SharedPtr<Object> &value)
ParametroTipoDescrizione
tipoconst TypeInfo&Il tipo di enumerazione da restituire.
valoreconst SharedPtr<Object>&Il valore da convertire in un membro di enumerazione.

ReturnValue

Un oggetto di enumerazione il cui valore è value.

Vedi anche

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

Converte il valore intero senza segno a 64 bit specificato in un membro di enumerazione.

static SharedPtr<Object> System::EnumValuesBase::ToObject(const TypeInfo &type, uint64_t value)
ParametroTipoDescrizione
tipoconst TypeInfo&Il tipo di enumerazione da restituire.
valoreuint64_tIl valore da convertire in un membro di enumerazione.

ReturnValue

Un’istanza dell’enumerazione impostata a value.

Vedi anche