System::ObjectExt::Unbox-methode

ObjectExt::Unbox(const SmartPtr<Object>&) method

Unboxt waardetypen na conversie naar Object. Implementatie voor enum-types.

template<typename T> static std::enable_if<std::is_enum<T>::value, T>::type System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
ParameterBeschrijving
TEnum type.
ParameterTypeBeschrijving
objconst SmartPtr<Object>&Object om te unboxen.

ReturnValue

Enum value.

Zie ook

ObjectExt::Unbox(const SmartPtr<Object>&) method

Unboxt waardetypen na conversie naar Object. Implementatie voor niet-enum- en niet-nullable types.

template<class T> static std::enable_if<!std::is_enum<T>::value &&detail::has_operator_equal<T>::value, T>::type System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
ParameterBeschrijving
TWaarde‑type.
ParameterTypeBeschrijving
objconst SmartPtr<Object>&Object om te unboxen.

ReturnValue

Unboxte waarde.

Zie ook

ObjectExt::Unbox(const SmartPtr<Object>&) method

Unboxt waardetypen na conversie naar Object. Implementatie voor niet-enum- en niet-nullable types.

template<class T> static std::enable_if<!std::is_enum<T>::value &&!detail::has_operator_equal<T>::value, T>::type System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
ParameterBeschrijving
TWaarde‑type.
ParameterTypeBeschrijving
objconst SmartPtr<Object>&Object om te unboxen.

ReturnValue

Unboxte waarde.

Zie ook

ObjectExt::Unbox(const SmartPtr<Object>&) method

Ontdoet string-waarden.

String System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
ParameterTypeBeschrijving
objconst SmartPtr<Object>&Object om te unboxen

ReturnValue

String representation of boxed string, can be null if boxed string was null.

Zie ook

ObjectExt::Unbox(E) method

Ontdoet enum-typen naar integer.

template<class T,class E> static std::enable_if<std::is_enum<E>::value &&std::numeric_limits<T>::is_integer, T>::type System::ObjectExt::Unbox(E e)
ParameterBeschrijving
TDoel-integertype.
EBron-enumtype.
ParameterTypeBeschrijving
eEWaarde om te unboxen.

ReturnValue

Integerrepresentatie van enum.

Zie ook

ObjectExt::Unbox(E) method

Converteert enum-typen.

template<class T,class E> static std::enable_if<std::is_enum<E>::value &&std::is_enum<T>::value, T>::type System::ObjectExt::Unbox(E e)
ParameterBeschrijving
TDoelenumtype.
EBron-enumtype.
ParameterTypeBeschrijving
eEWaarde om te unboxen.

ReturnValue

Geconverteerde enumwaarde.

Zie ook