Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.73 KB

Assorted.Utils.Dates.Patterns.WeeklyPattern.md

File metadata and controls

50 lines (34 loc) · 2.73 KB

WeeklyPattern Class

Namespace: Assorted.Utils.Dates.Patterns
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Implements: IRecurrentPattern, IEquatable<WeeklyPattern>
Inheritance: object WeeklyPattern

Generates a sequence of System.DateTime values based on a weekly reoccurring pattern when events occur on some specific days of the week.

Syntax

public class WeeklyPattern : IRecurrentPattern, IEquatable<WeeklyPattern>

Constructors

Constructor Description
WeeklyPattern(DaysOfTheWeek, int, DayOfWeek) Initializes an instance of WeeklyPattern class.

Properties

Property Description
DaysOfWeek Gets the days of the week when the event occurs.
FirstDayOfWeek Gets the first day of the week.
Interval Gets the interval of occurrences in number of weeks.

Methods

Method Description
Equals(object) Determines whether this instance and a specified object are equal.
Equals(WeeklyPattern) Indicates whether the current instance is equal to another object of type WeeklyPattern.
GetHashCode() Returns the hash code for this instance.
GetRecurrencesStartingAt(DateTime) Returns the sequence of recurring dates, starting at a given System.DateTime value.
GetRelativeDaysOfWeekTo(DateTime) Returns the list of days specified by the DaysOfWeek, relative to a given date.

Thread Safety

Any public member of this type, either static or instance, is thread-safe.

See Also


This document is generated by DG.