Metodo System::ObjectExt::Box

ObjectExt::Box(const String&) method

Effettua il boxing dei valori stringa.

SmartPtr<Object> System::ObjectExt::Box(const String &value)
ParametroTipoDescrizione
valoreconst String&Valore da incapsulare.

ReturnValue

Valore incapsulato o null, se la stringa di origine è null.

Vedi anche

ObjectExt::Box(const T&) method

Incapsula i tipi valore per la conversione in Object. Implementazione per i tipi enum.

template<typename T> static std::enable_if<std::is_enum<T>::value, System::SmartPtr<System::Object>>::type System::ObjectExt::Box(const T &value)
ParametroDescrizione
Ttipo Enum.
ParametroTipoDescrizione
valueconst T&Valore Enum da incapsulare.

ReturnValue

Puntatore intelligente a oggetto che conserva il valore incapsulato.

Vedi anche

ObjectExt::Box(const T&) method

Incapsula i tipi valore per la conversione in Object. Implementazione per i tipi non enum.

template<typename T> static std::enable_if<!std::is_enum<T>::value &&!IsNullable<T>::value, System::SmartPtr<System::Object>>::type System::ObjectExt::Box(const T &value)
ParametroDescrizione
TTipo valore.
ParametroTipoDescrizione
valoreconst T&Valore da incapsulare.

ReturnValue

Puntatore intelligente a oggetto che conserva il valore incapsulato.

Vedi anche

ObjectExt::Box(const T&) method

Incapsula i tipi Nullable per la conversione in Object.

template<typename T> static std::enable_if<IsNullable<T>::value, System::SmartPtr<System::Object>>::type System::ObjectExt::Box(const T &value)
ParametroDescrizione
TTipo valore.
ParametroTipoDescrizione
valoreconst T&Valore da incapsulare.

ReturnValue

Puntatore intelligente a oggetto che conserva il valore incapsulato.

Vedi anche