///<summary>Checks whether this Holiday instance is within a holiday category.</summary> public static bool Is(this Holiday holiday, HolidayCategory category) { if (category == HolidayCategory.None) { return(holiday == null); } return(holiday != null && holiday.Category == category); }
///<summary>Checks whether this date is a category of יום טוב.</summary> public bool Is(HolidayCategory category) { return Holiday.All.Any(h => h.Category == category && h.Date.Is(Date)); ; }
///<summary>Checks whether this date is a category of יום טוב.</summary> public bool Is(HolidayCategory category) { return(Holiday.All.Any(h => h.Category == category && h.Date.Is(Date)));; }
///<summary>Checks whether this Holiday instance is within a holiday category.</summary> public static bool Is(this Holiday holiday, HolidayCategory category) { if (category == HolidayCategory.None) return holiday == null; return holiday != null && holiday.Category == category; }
private Holiday(string name, IHebrewEvent date, HolidayCategory category) { Name = name; Date = date; Category = category; }
private Holiday(string name, HebrewMonth month, int day, HolidayCategory category) : this(name, new HebrewDayOfYear(month, day), category) { }