Table of Contents

NotableDateCacheFile Class

Definition

Namespace
Bodu.Globalization.Calendar.Caching
Assembly
Bodu.Globalization.Calendar.Caching.dll
Package
Bodu.Globalization.Calendar.Caching 1.0.0
Source
NotableDateCacheFile.cs

The root table for a persisted notable-date cache file, holding one territory's cached years as a flat pair of arrays: the per-year entry metadata and the occurrences that belong to those years.

public sealed class NotableDateCacheFile
Inheritance
NotableDateCacheFile
Inherited Members
Extension Methods

Remarks

The occurrences are stored flat rather than nested under each year - each occurrence row carries its own Year and Version - so the document is a shallow structure that both the TOML and JSON serializers round-trip without nested arrays of tables. A cached year that yielded no occurrences appears only in Entries with no matching occurrence rows.

Constructors

NotableDateCacheFile()

public NotableDateCacheFile()

Properties

Entries

Gets or sets the per-year cache entry metadata, serialized as an array of tables.

public List<NotableDateCacheYearRow> Entries { get; set; }

Property Value

List<NotableDateCacheYearRow>

The per-year entries, one per cached civil year.

Occurrences

Gets or sets the cached occurrences, serialized as an array of tables and associated back to their year by the occurrence row's own year and version.

public List<NotableDateCacheOccurrenceRow> Occurrences { get; set; }

Property Value

List<NotableDateCacheOccurrenceRow>

The cached occurrences across every year the file holds.

Territory

Gets or sets the territory whose cached years the file holds.

public string? Territory { get; set; }

Property Value

string

The normalized territory code, or null in a malformed file.

Applies to

ProductVersions
.NET8, 10