| EnumerateAsTuplesT1, T2(IEnumerableT1, IEnumerableT2) Method |
Enumerates the elements of two enumerations as tuples.
Namespace: TomsToolbox.EssentialsAssembly: 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
)
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 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,
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