Click or drag to resize

EnumerateAsTuplesT1, T2(IEnumerableT1, IEnumerableT2) Method

Enumerates the elements of two enumerations as tuples.

Namespace: TomsToolbox.Essentials
Assembly: TomsToolbox.Essentials (in TomsToolbox.Essentials.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static IEnumerable<Tuple<T1, T2>> AsTuples<T1, T2>(
	IEnumerable<T1> first,
	IEnumerable<T2> second
)

Parameters

first  IEnumerableT1
The first collection.
second  IEnumerableT2
The second collection.

Type Parameters

T1
The type of the first collection.
T2
The type of the second collection.

Return Value

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