System::ObjectExt::Unbox メソッド

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

値型を Object に変換した後にアンボックスします。列挙型向けの実装です。

template<typename T> static std::enable_if<std::is_enum<T>::value, T>::type System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
パラメーター説明
TEnum 型。
パラメーター説明
objconst SmartPtr<Object>&Object をアンボックスします。

ReturnValue

Enum value.

参照

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

値型を Object に変換した後にアンボックスします。列挙型でなく、Nullable でもない型向けの実装です。

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)
パラメーター説明
T値型です。
パラメーター説明
objconst SmartPtr<Object>&Object をアンボックスします。

ReturnValue

アンボックスされた値。

参照

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

値型を Object に変換した後にアンボックスします。列挙型でなく、Nullable でもない型向けの実装です。

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)
パラメーター説明
T値型です。
パラメーター説明
objconst SmartPtr<Object>&Object をアンボックスします。

ReturnValue

アンボックスされた値。

参照

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

文字列値をアンボックスします。

String System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
パラメーター説明
objconst SmartPtr<Object>&Object をアンボックス

ReturnValue

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

参照

ObjectExt::Unbox(E) method

列挙型を整数にアンボックスします。

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)
パラメーター説明
T変換先整数型。
E変換元列挙型。
パラメーター説明
eEアンボックスする値。

ReturnValue

列挙型の整数表現。

参照

ObjectExt::Unbox(E) method

列挙型を変換します。

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)
パラメーター説明
T対象の列挙型。
E変換元列挙型。
パラメーター説明
eEアンボックスする値。

ReturnValue

変換された列挙値。

参照