Table of Contents

AsiaPacificCalendarData Class

Definition

Namespace
Bodu.Globalization.Calendar
Assembly
Bodu.Globalization.Calendar.AsiaPacific.dll
Package
Bodu.Globalization.Calendar.AsiaPacific 1.0.0
Source
AsiaPacificCalendarData.cs

Provides access to the embedded Asia-Pacific notable-date resource pack (Australia, China, Japan, New Zealand), built on the notable-date schema.

public static class AsiaPacificCalendarData
Inheritance
AsiaPacificCalendarData
Inherited Members

Examples

// Query public holidays for Western Australia.
NotableDateService service = AsiaPacificCalendarData.CreateService("AU-WA");
DateRange year = new(new DateOnly(2026, 1, 1), new DateOnly(2026, 12, 31));
IReadOnlyList<NotableDate> holidays = service.Resolve(year, "AU-WA");

Remarks

Each supported country is a self-contained embedded resource. A territory may be a country code (AU) or a subdivision (AU-WA); the subdivision selects the same country resource, and the resolver filters by the full territory at query time.

When to use. Call CreateService(string) for a ready-to-query NotableDateService, or LoadResource(string) when you need the underlying NotableDateResource to compose with custom collaborators or providers.

Properties

SupportedCountries

Gets the country codes the Asia-Pacific pack provides resources for.

public static IReadOnlyList<string> SupportedCountries { get; }

Property Value

IReadOnlyList<string>

The supported ISO 3166-1 alpha-2 country codes.

Methods

CreateService(string)

Builds a resolver over the resource for the country owning the supplied territory.

public static NotableDateService CreateService(string territory)

Parameters

territory string

A country code or subdivision (for example AU or AU-WA).

Returns

NotableDateService

A service over the country's resource.

Exceptions

ArgumentNullException

territory is null.

ArgumentException

The territory's country is not provided by this pack.

LoadResource(string)

Loads the notable-date resource for the country owning the supplied territory.

public static NotableDateResource LoadResource(string territory)

Parameters

territory string

A country code or subdivision (for example AU or AU-WA).

Returns

NotableDateResource

The loaded NotableDateResource.

Exceptions

ArgumentNullException

territory is null.

ArgumentException

The territory's country is not provided by this pack.

Applies to

ProductVersions
.NET8, 10

See Also