| EnumerateAsTuplesT1, T2 Method (IEnumerableT1, IEnumerableT2) |
Enumerates the elements of two enumerations as tuples.
Namespace:
TomsToolbox.Essentials
Assembly:
TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax public static IEnumerable<Tuple<T1, T2>> AsTuples<T1, T2>(
IEnumerable<T1> first,
IEnumerable<T2> second
)
Public Shared Function AsTuples(Of T1, T2) (
first As IEnumerable(Of T1),
second As IEnumerable(Of T2)
) As IEnumerable(Of Tuple(Of T1, T2))
Parameters
- first
- Type: System.Collections.GenericIEnumerableT1
The first collection. - second
- Type: System.Collections.GenericIEnumerableT2
The second collection.
Type Parameters
- T1
- The type of the first collection.
- T2
- The type of the second collection.
Return Value
Type:
IEnumerableTupleT1,
T2Tuples of the elements.
Remarks If the number of elements in each collection is different, the smaller collection determines the number of enumerated items.
See Also