Extension Methods from Jarod Weiss
-
GetEnumDescription
Gets the description attribute assigned to an item in an Enum.
-
Map
Re-maps a number from one range to another. That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc. (like Arduino function map) Parameters value: the number to map. fromLow: the lower bound of the value’s current range. fromHigh: the upper bound of the value’s current range. toLow: the lower bound of the value’s target range. toHigh: the upper bound of the value’s target range.
-
AddWorkDays
This extension add "working day" to a date, where working day means from Monday to Friday.