Skip to content
ConsoleMonster
Class

CalendarData

ConsoleMonster.Dates

Namespace
ConsoleMonster.Dates
Assembly
ConsoleMonster
Modifiers
sealed

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

Accepted by parameters 1

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 optional

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 required

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 required

Returns

StatusKind?