Table of Contents

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

Date DateOnly

The date of the holiday.

Name string

The name of the holiday in the country's language.

IsHalfDay bool

True for afternoon-only holidays.

Properties

Date

The date of the holiday.

public DateOnly Date { get; init; }

Property Value

DateOnly

IsHalfDay

True for afternoon-only holidays.

public bool IsHalfDay { get; init; }

Property Value

bool

Name

The name of the holiday in the country's language.

public string Name { get; init; }

Property Value

string