Asposecpplib
System::IEnumerableTupleAdapter< TT, Guard, T > Class Template Reference

Adapter to use IEnumerable in STL-like iterations. Used by NUnit TestCaseSource attribute translation. More...

Inherits System::IEnumerableAdapter< TT, typename std::tuple_element< 0, TT >::type >.

Public Member Functions

 IEnumerableTupleAdapter (const System::SharedPtr< System::Collections::Generic::IEnumerable< T >> &data)
 Constructs wrapper around existing C#-style container. More...
 

Detailed Description

template<typename TT, class Guard = typename std::enable_if<System::Constraints::IsStdTuple<TT>::value>::type, typename T = typename std::tuple_element<0, TT>::type>
class System::IEnumerableTupleAdapter< TT, Guard, T >

Adapter to use IEnumerable in STL-like iterations. Used by NUnit TestCaseSource attribute translation.

Template Parameters
TTTuple of test method arguments.
GuardService type argument whose purpose is to ensure that TT is tuple type
TFirst argument type of TT.

Constructor & Destructor Documentation

◆ IEnumerableTupleAdapter()

template<typename TT , class Guard = typename std::enable_if<System::Constraints::IsStdTuple<TT>::value>::type, typename T = typename std::tuple_element<0, TT>::type>
System::IEnumerableTupleAdapter< TT, Guard, T >::IEnumerableTupleAdapter ( const System::SharedPtr< System::Collections::Generic::IEnumerable< T >> &  data)
inline

Constructs wrapper around existing C#-style container.

Parameters
dataContainer to wrap.