This is preliminary documentation and is subject to change.

DefaultHolidayProvider Class

The default holiday provider, has only 4 common holidays, 01 Jan, 01 May, 25 Dec and 26 Dec

Definition

Namespace: MoreDateTime
Assembly: MoreDateTime (in MoreDateTime.dll) Version: 1.3.0
C#
public class DefaultHolidayProvider : IHolidayProvider
Inheritance
Object    DefaultHolidayProvider
Implements
IHolidayProvider

Constructors

DefaultHolidayProvider Initializes a new instance of the DefaultHolidayProvider class

Methods

IsPublicHoliday(DateOnly, CultureInfo) Checks whether the given date is a public holiday for the given Calendar in CultureInfo
IsPublicHoliday(DateTime, CultureInfo) Checks whether the given date is a public holiday for the given Calendar in CultureInfo
NumberOfKnownHolidays Gets the number of known holidays

See Also