 | attachAttachT1, T2, T3, T4 Method (IEnumerableTupleT1, T2, T3, FuncT1, T2, T3, T4) |
Turns each element in an
IEnumerableT of type
TupleT1, T2, T3 to a tuple including itself and an output of itself and a selector function.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static IEnumerable<Tuple<T1, T2, T3, T4>> Attach<T1, T2, T3, T4>(
this IEnumerable<Tuple<T1, T2, T3>> this,
Func<T1, T2, T3, T4> selector
)
Parameters
- this
- Type: System.Collections.GenericIEnumerableTupleT1, T2, T3
The original IEnumerableT of type TupleT1, T2, T3 - selector
- Type: SystemFuncT1, T2, T3, T4
The function from which to get the output as the fourth member of the tuple.
Type Parameters
- T1
- The first type of the original IEnumerableT of type TupleT1, T2, T3
- T2
- The second type of the original IEnumerableT of type TupleT1, T2, T3
- T3
- The third type of the original IEnumerableT of type TupleT1, T2, T3
- T4
- The type of selector's output.
Return Value
Type:
IEnumerableTupleT1,
T2,
T3,
T4An
IEnumerableT of type
TupleT1, T2, T3, T4 of
this's elements with the output of the selector function applied to them.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTupleT1,
T2,
T3. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also