Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 3.04 KB

Assorted.Utils.Dates.Patterns.MonthlyWeekPattern.md

File metadata and controls

53 lines (35 loc) · 3.04 KB

MonthlyWeekPattern Class

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.

Syntax

public class MonthlyWeekPattern : IRecurrentPattern, IEquatable<MonthlyWeekPattern>

Constructors

Constructor Description
MonthlyWeekPattern(WeekOfMonth, DaysOfTheWeek, int) Initializes an instance of MonthlyWeekPattern class.

Properties

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.

Methods

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.

Thread Safety

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

Remarks

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.

See Also


This document is generated by DG.