EnumerableExtensionsMinMaxT Method |
Evaluates the minimum and maximum of a enumeration of elements.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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,
TThe 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