rsdn / CodeJam

Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another
MIT License
258 stars 35 forks source link

TryCreateExclusiveTo doesn't create the same range as CreateExclusiveTo #114

Closed NN--- closed 4 years ago

NN--- commented 4 years ago

They should create the same range, yet the results are not the same:

CodeJam.Ranges.Range.TryCreateExclusiveTo(1, 10).Contains(10)
true
CodeJam.Ranges.Range.CreateExclusiveTo(1, 10).Contains(10)
false