Namespace: Assorted.Utils.Dates
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Inheritance: object→
DayOfWeekExtensions
Extends the System.DayOfWeek
and DaysOfTheWeek
data types.
public static class DayOfWeekExtensions
Method | Description |
---|---|
AsEnumerable(this DaysOfTheWeek) | Converts the days in a DaysOfTheWeek value to a sequence of System.DayOfWeek values. |
AsFlags(this IEnumerable<DayOfWeek>) | Converts the sequence of System.DayOfWeek values to a DaysOfTheWeek value. |
DaysFromStartOfTheWeek(this DayOfWeek, DayOfWeek) | Returns the number of days between this day of the week and start of the week. |
ToDaysOfWeek(this DayOfWeek) | Converts a System.DayOfWeek value to a DaysOfTheWeek value. |
Any public static member of this type is thread-safe, but instance members are not guaranteed to be thread-safe.
This document is generated by DG.