Click or drag to resize

EnumerableExtensionsMinMaxT Method

Evaluates the minimum and maximum of a enumeration of elements.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static (T , T ) MinMax<T>(
	this IEnumerable<T> seq
)
where T : Object, IComparable<T>

Parameters

seq  IEnumerableT
The enumeration.

Type Parameters

T
Type of element

Return Value

ValueTupleT, T
The tuple with the minimum and maximum of of all elements.

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