MiniUtilToPairT Method

Convert am array with (at least) two elements in a pair (2-tuple).

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static (T , T ) ToPair<T>(
	this IEnumerable<T> val
)

Parameters

val  IEnumerableT
array.

Type Parameters

T
whatever.

Return Value

ValueTupleT, T
tuple.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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