Class DayOfWeekExtensions
Extensions methods for DayOfWeek.
Inherited Members
Namespace: GlitchedPolygons.ExtensionMethods
Assembly: GlitchedPolygons.ExtensionMethods.dll
Syntax
public static class DayOfWeekExtensions
Methods
IsBetween(DayOfWeek, (bool, bool, bool, bool, bool, bool, bool))
Checks whether a given DayOfWeek is within a range of accepted days of the week.
Declaration
public static bool IsBetween(this DayOfWeek dayOfWeek, (bool, bool, bool, bool, bool, bool, bool) range)
Parameters
Type | Name | Description |
---|---|---|
DayOfWeek | dayOfWeek | DayOfWeek to compare against the passed |
(bool, bool, bool, bool, bool, bool, bool) | range | The range of accepted days of the week (starting at Monday). |
Returns
Type | Description |
---|---|
bool |
|
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if the inspected DayOfWeek is outside of the range of valid days of week. |