Table of Contents

NotableDateCacheYearRow Class

Definition

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

The persisted metadata for one cached civil year: the year, the resource version it was computed under, and the UTC instant it was computed.

public sealed class NotableDateCacheYearRow
Inheritance
NotableDateCacheYearRow
Inherited Members
Extension Methods

Remarks

A year row exists for every cached year, including a year that yielded no occurrences, so the cache can distinguish a computed-but-empty year from a never-computed one.

Constructors

NotableDateCacheYearRow()

public NotableDateCacheYearRow()

Properties

ComputedAtUtc

Gets or sets the UTC instant the year was computed.

public DateTimeOffset ComputedAtUtc { get; set; }

Property Value

DateTimeOffset

The computed instant.

Version

Gets or sets the resource version the year was computed under.

public string? Version { get; set; }

Property Value

string

The resource version token, or null in a malformed file.

Year

Gets or sets the civil year the entry holds.

public int Year { get; set; }

Property Value

int

The civil year.

Applies to

ProductVersions
.NET8, 10