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.
public class WeeklyPattern : IRecurrentPattern, IEquatable<WeeklyPattern>
Constructor | Description |
---|---|
WeeklyPattern(DaysOfTheWeek, int, DayOfWeek) | Initializes an instance of WeeklyPattern class. |
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. |
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. |
Any public member of this type, either static or instance, is thread-safe.
This document is generated by DG.