System::CastEnumerableTo メソッド

System::CastEnumerableTo(const From&) method

指定された enumerable オブジェクトの要素を別の型に明示的にキャストします。

template<class To,class From> std::enable_if<!System::detail::has_method_get_Count<From>::value, Collections::Generic::ListPtr<To>>::type System::CastEnumerableTo(const From &enumerable)
パラメーター説明
enumerable オブジェクトの要素を静的にキャストする型
Fromenumerable オブジェクトの型
パラメーター説明
enumerableconst From&キャストする要素を含むEnumerableオブジェクト

ReturnValue

To の要素で、enumerable の要素に相当する新しいコレクションへのポインタ

参照

System::CastEnumerableTo(const From&) method

指定された enumerable オブジェクトの要素を別の型に明示的にキャストします。

template<class To,class From> std::enable_if<System::detail::has_method_get_Count<From>::value, Collections::Generic::ListPtr<To>>::type System::CastEnumerableTo(const From &enumerable)
パラメーター説明
enumerable オブジェクトの要素を静的にキャストする型
Fromenumerable オブジェクトの型
パラメーター説明
enumerableconst From&get_Count メソッドが定義され、キャストする要素を含むEnumerableオブジェクトの継承者です

ReturnValue

To の要素で、enumerable の要素に相当する新しいコレクションへのポインタ

参照