Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.86 KB

Assorted.Utils.Dates.DayOfWeekExtensions.md

File metadata and controls

34 lines (22 loc) · 1.86 KB

DayOfWeekExtensions Class

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.

Syntax

public static class DayOfWeekExtensions

Methods

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.

Thread Safety

Any public static member of this type is thread-safe, but instance members are not guaranteed to be thread-safe.

See Also


This document is generated by DG.