Struct PublicHoliday
- Namespace
- HeroKit.Globalization
- Assembly
- HeroKit.dll
A public holiday.
public readonly record struct PublicHoliday : IEquatable<PublicHoliday>
- Implements
- Inherited Members
- Extension Methods
Constructors
PublicHoliday(DateOnly, string, bool)
A public holiday.
public PublicHoliday(DateOnly Date, string Name, bool IsHalfDay)
Parameters
DateDateOnlyThe date of the holiday.
NamestringThe name of the holiday in the country's language.
IsHalfDayboolTrue for afternoon-only holidays.
Properties
Date
The date of the holiday.
public DateOnly Date { get; init; }
Property Value
IsHalfDay
True for afternoon-only holidays.
public bool IsHalfDay { get; init; }
Property Value
Name
The name of the holiday in the country's language.
public string Name { get; init; }