The documentation comes from the Markdown files in the source code, so is always up-to-date but available only in English. Enjoy!
MinMax is a immutable structure. Is just a Tuple of elements of the same
type where Min is considered the minimum and Max the maximum in any
given order. It's different from Interval because the elements per-se
are not comparables, but usually have a member that is. It is returned
by WithMinMaxPair
function.
[Serializable]
public struct MinMax<T> : IEquatable<MinMax<T>>
{
public readonly T Min;
public readonly T Max;
(..)
}
Example
countries.WithMinMaxPair(c=>c.Population).ToString(); //Returns [Min = Pitcaim Islands, Max = China]
© Signum Software. All Rights Reserved.
Powered by Signum Framework