1.0.0-beta.1
Pre-release
Pre-release
thomaslevesque
released this
13 Sep 11:56
·
10 commits
to master
since this release
New
- Added support for C# 8 nullable reference types
Changed
- Replaced
GetValueOrDefault
with 3 new methods to better support nullability analysis.ValueOrDefault<T>() where T : struct
: returns the option's value, ordefault(T)
if the option isNone
ValueOrNull<T>() where T : class?
: returns the option's value, ornull
if the option isNone
ValueOr<T>(T defaultValue)
: returns the option's value, ordefaultValue
if the option isNone