Click or drag to resize

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
)

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, T2
Tuples 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