Class
CalendarData
ConsoleMonster.Dates
A snapshot of marked dates, retaining duplicate results and their labels.
Inheritance
- object
- CalendarData
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property Calendar.Data
Accepted by parameters 1
- Constructor Calendar.Calendar
Constructors
public CalendarData(IEnumerable<CalendarMark>? marks = null) #Groups the supplied marks by date. Later changes to the source collection do not change the snapshot.
Parameters
- marks System.Collections.Generic.IEnumerable<ConsoleMonster.Dates.CalendarMark>? = null
Methods
public IReadOnlyList<CalendarMark> GetMarks(DateTime date) #All results on a date, in source order. An unmarked date returns an empty collection.
Parameters
- date System.DateTime
Returns
IReadOnlyList<CalendarMark>public StatusKind? GetStatus(DateTime date) #The day's highest-priority outcome: Fail, Warn, Running, Pending, Pass, Info, Skip. Unmarked days are neutral.
Parameters
- date System.DateTime
Returns
StatusKind?