Feedback
Use consistent MinValue and MaxValue property names
- Status
- Fixed
- Fixed in
- v26.8.5
- Last updated
- 2026-08-22
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
The standard library uses inconsistent shared property names for minimum and maximum values across bounded scalar types. Currency already exposes MinValue and MaxValue, while Integer and Double expose Min and Max, and DateTime has MinValue but no maximum equivalent.
This proposal standardises bounded scalar types on MinValue and MaxValue as the canonical shared-property names:
- Add
Integer.MinValueandInteger.MaxValue. - Add
Double.MinValueandDouble.MaxValue(the most negative and largest positive finiteDoublevalues;Double.Infinityremains a separate value). - Add the currently missing
DateTime.MaxValue. - Keep the existing
Currency.MinValueandCurrency.MaxValue. - Retain
Integer.Min,Integer.Max,Double.Min, andDouble.Maxas source-compatible, deprecated compatibility aliases. - Do not add
Currency.Min/Currency.MaxorDateTime.Min/DateTime.Max. DateTime.Emptyremains unchanged and is still the preferred representation for an unset date.
The migration is additive and source compatible: existing code using the short names continues to compile and run, with a normal deprecation warning.