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, T >.

Public Member Functions

 IEnumerableTupleAdapter (const System::SharedPtr< System::Collections::Generic::IEnumerable< T >> &data)
 Constructs wrapper around existing C#-style container. More...
 
- Public Member Functions inherited from System::IEnumerableAdapter< TT, T >
 IEnumerableAdapter ()
 Constructs empty wrapper. More...
 
 IEnumerableAdapter (const System::SharedPtr< System::Collections::Generic::IEnumerable< T >> &data)
 Constructs wrapper around existing C#-style container. More...
 
IEnumeratorIterator< TT, T > begin () const
 Iteration begin. More...
 
IEnumeratorIterator< TT, T > end () const
 Iteration end. More...
 

Additional Inherited Members

- Public Types inherited from System::IEnumerableAdapter< TT, T >
using value_type = TT
 Type of elements. More...
 
using const_iterator = IEnumeratorIterator< TT, T >
 Iterator type. 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.