INotableDateNameLocalizer Interface
Definition
- Namespace
- Bodu.Globalization.Calendar
- Assembly
- Bodu.Globalization.Calendar.dll
- Package
- Bodu.Globalization.Calendar 1.0.1
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
notableDateNotableDateThe resolved occurrence whose name is being localized.
cultureCultureInfoThe culture to localize for.
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |