Closed oliverbooth closed 1 year ago
System.Collection.Generic.Enumerable
(T Minimum, T Maximum) MinMax<T>()
Returns the minimum and maximum values contained in the current collection of ____.
n/a
var minValue = T.MaxValue; var maxValue = T.MinValue; foreach (T item in source) { if (item < minValue) { minValue = item; } if (item > maxValue) { maxValue = item; } } return (minValue, maxValue)
Type to extend
System.Collection.Generic.Enumerable
Signature
Summary
Parameters
n/a
Benefits
Drawbacks
Implementation Example
Code of Conduct