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...
If value >= minimum AndAlso value <= maximum Then
versus
If value.Between(minimum, maximum) Then
This, of course, requires several overloaded versions; numeric, date, etc. Thoughts?
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...
versus
This, of course, requires several overloaded versions; numeric, date, etc. Thoughts?