Ejemplo n.º 1
0
 ///<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);
 }
Ejemplo n.º 2
0
 ///<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)); ;
 }
Ejemplo n.º 3
0
 ///<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)));;
 }
Ejemplo n.º 4
0
 ///<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;
 }
Ejemplo n.º 5
0
 private Holiday(string name, IHebrewEvent date, HolidayCategory category)
 {
     Name     = name;
     Date     = date;
     Category = category;
 }
Ejemplo n.º 6
0
 private Holiday(string name, HebrewMonth month, int day, HolidayCategory category) : this(name, new HebrewDayOfYear(month, day), category)
 {
 }