Metodo System::ObjectExt::UnknownToObject

ObjectExt::UnknownToObject(const T&) method

Converte un tipo sconosciuto in Object, gestendo sia i casi di smart pointer che di tipo valore.

template<typename T> static std::enable_if<!IsSmartPtr<T>::value, System::SmartPtr<Object>>::type System::ObjectExt::UnknownToObject(const T &obj)
ParametroDescrizione
TTipo da convertire in Object.
ParametroTipoDescrizione
objconst T&Object da convertire.

ReturnValue

Smart pointer a Object che può essere sia un puntatore convertito sia un valore incapsulato.

Vedi anche

ObjectExt::UnknownToObject(T) method

Converte un tipo sconosciuto in Object, gestendo sia i casi di smart pointer che di tipo valore.

template<typename T> static std::enable_if<IsSmartPtr<T>::value, System::SmartPtr<Object>>::type System::ObjectExt::UnknownToObject(T obj)
ParametroDescrizione
TTipo da convertire in Object.
ParametroTipoDescrizione
objTObject da convertire.

ReturnValue

Smart pointer a Object che può essere sia un puntatore convertito sia un valore incapsulato.

Vedi anche