Show / Hide Table of Contents

Class DayOfWeekExtensions

Extensions methods for DayOfWeek.

Inheritance
object
DayOfWeekExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 range of accepted days of week.

(bool, bool, bool, bool, bool, bool, bool) range

The range of accepted days of the week (starting at Monday).

Returns
Type Description
bool

true if dayOfWeek is set to true inside the passed range; false otherwise.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown if the inspected DayOfWeek is outside of the range of valid days of week.

Back to top Generated by DocFX