Table of Contents

INotableDateNameLocalizer Interface

Definition

Namespace
Bodu.Globalization.Calendar
Assembly
Bodu.Globalization.Calendar.dll
Package
Bodu.Globalization.Calendar 1.0.1
Source
INotableDateNameLocalizer.cs

Supplies a culture-specific display name for a resolved notable-date occurrence, supplementing the invariant DisplayName carried by the concept.

public interface INotableDateNameLocalizer
Extension Methods

Remarks

A localizer is applied on demand to resolved occurrences (for example through the Localize extension methods), so resolution itself stays culture-agnostic and a caller can request any culture.

Methods

GetDisplayName(NotableDate, CultureInfo)

Returns the display name of an occurrence for the requested culture.

string? GetDisplayName(NotableDate notableDate, CultureInfo culture)

Parameters

notableDate NotableDate

The resolved occurrence whose name is being localized.

culture CultureInfo

The culture to localize for.

Returns

string

The localized display name, or null to fall back to the occurrence's existing display name.

Applies to

ProductVersions
.NET8, 10