Click or drag to resize

EnumerateAsTuples Method (IEnumerable, IEnumerable)

Enumerates the elements of two enumerations as tuples.

Namespace:  TomsToolbox.Essentials
Assembly:  TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax
public static IEnumerable<Tuple<Object, Object>> AsTuples(
	IEnumerable first,
	IEnumerable second
)

Parameters

first
Type: System.CollectionsIEnumerable
The first collection.
second
Type: System.CollectionsIEnumerable
The second collection.

Return Value

Type: IEnumerableTupleObject, Object
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