File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ public sealed class UnitParser
2323 /// <summary>
2424 /// Create a parser using the given unit abbreviations cache.
2525 /// </summary>
26- /// <param name="unitAbbreviationsCache"></param>
27- // TODO Change this to not fallback to built-in units abbreviations when given null, in v6: https://github.com/angularsen/UnitsNet/issues/1200
28- public UnitParser ( UnitAbbreviationsCache ? unitAbbreviationsCache )
26+ /// <param name="unitAbbreviationsCache">The unit abbreviations to parse with. </param>
27+ /// <exception cref="ArgumentNullException">No unit abbreviations cache was given.</exception>
28+ public UnitParser ( UnitAbbreviationsCache unitAbbreviationsCache )
2929 {
30- _unitAbbreviationsCache = unitAbbreviationsCache ?? UnitsNetSetup . Default . UnitAbbreviations ;
30+ _unitAbbreviationsCache = unitAbbreviationsCache ?? throw new ArgumentNullException ( nameof ( unitAbbreviationsCache ) ) ;
3131 }
3232
3333 /// <summary>
You can’t perform that action at this time.
0 commit comments