Namespace: Assorted.Utils.Dates.Patterns
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Implements: IRecurrentPattern, IEquatable<MonthlyWeekPattern>
Inheritance: object→
MonthlyWeekPattern
Generates a sequence of System.DateTime
values based on a monthly reoccurring pattern when events occur on a specific day of the week and a specific week of the month.
public class MonthlyWeekPattern : IRecurrentPattern, IEquatable<MonthlyWeekPattern>
Constructor | Description |
---|---|
MonthlyWeekPattern(WeekOfMonth, DaysOfTheWeek, int) | Initializes an instance of MonthlyWeekPattern class. |
Property | Description |
---|---|
DaysOfWeek | Gets the accepted days of the week when the event can occur. |
Interval | Gets the interval of occurrences in number of months. |
WeekOfMonth | Gets the week of the month when the event occurs. |
Method | Description |
---|---|
Equals(MonthlyWeekPattern) | Indicates whether the current instance is equal to another object of type MonthlyWeekPattern . |
Equals(object) | Determines whether this instance and a specified object are equal. |
GetHashCode() | Returns the hash code for this instance. |
GetRecurrencesStartingAt(DateTime) | Returns the sequence of recurring dates, starting at a given System.DateTime value. |
Any public member of this type, either static or instance, is thread-safe.
If DaysOfWeek
property indicates that multiple days of the week are acceptable as the recurring day, the event occurs only on the earliest day. However, if WeekOfMonth
is Last
, the event occurs on the latest day.
This document is generated by DG.