You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is very often that you would like to check to see if a value is between two other values. I've been utilizing a set of extension methods that seems to provide a means to ease this as well as provide for an easier to understand implementation...
Ifvalue>=minimumAndAlsovalue<=maximumThen
versus
Ifvalue.Between(minimum,maximum)Then
This, of course, requires several overloaded versions; numeric, date, etc. Thoughts?
Activity
DualBrain commentedon Feb 25, 2022
Alternatively, would it make sense to make function to handle this (instead of extension methods)?
Additional questions...
Would it make sense to call this something else? Should there be two variants where one is truly between (exclusive) and one is within (inclusive)?