RecurrenceDay Struct

A day of a recurrence rule (BYDAY): a day of the week, and its position in the month or the year (2MO, the second Monday; -1FR, the last Friday).

public readonly struct RecurrenceDay : IEquatable<RecurrenceDay>
Implements

Constructors

NameDescription
RecurrenceDay(DayOfWeek, int)A day of a recurrence rule (BYDAY): a day of the week, and its position in the month or the year (2MO, the second Monday; -1FR, the last Friday).

RecurrenceDay(DayOfWeek, int)

A day of a recurrence rule (BYDAY): a day of the week, and its position in the month or the year (2MO, the second Monday; -1FR, the last Friday).

public RecurrenceDay(DayOfWeek Day, int Position = 0)

Parameters

Day DayOfWeek
The day of the week.
Position int
The position of the day in the month or the year (negative from the end), or 0 for every such day.

Properties

NameDescription
DayThe day of the week.
PositionThe position of the day in the month or the year (negative from the end), or 0 for every such day.

The day of the week.

public DayOfWeek Day { get; init; }

Property value

DayOfWeek

The position of the day in the month or the year (negative from the end), or 0 for every such day.

public int Position { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(DayOfWeek, int)
Equals(RecurrenceDay)
Equals(object)
GetHashCode()
ToString()Returns the day as it is written in a rule, such as MO or -1FR.

Deconstruct(DayOfWeek, int)

public void Deconstruct(out DayOfWeek Day, out int Position)

Parameters

Day DayOfWeek
Position int

No documentation is available.

Equals overloads

Equals(RecurrenceDay)

public bool Equals(RecurrenceDay other)
Parameters
other RecurrenceDay
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

Returns the day as it is written in a rule, such as MO or -1FR.

public override string ToString()

Returns

string The day.

Operators

NameDescription
operator ==(RecurrenceDay, RecurrenceDay)
operator !=(RecurrenceDay, RecurrenceDay)

operator ==(RecurrenceDay, RecurrenceDay)

public static bool operator ==(RecurrenceDay left, RecurrenceDay right)

Parameters

left RecurrenceDay
right RecurrenceDay

Returns

bool

No documentation is available.

operator !=(RecurrenceDay, RecurrenceDay)

public static bool operator !=(RecurrenceDay left, RecurrenceDay right)

Parameters

left RecurrenceDay
right RecurrenceDay

Returns

bool

No documentation is available.