Example #1
0
 /// <summary>
 /// Returns whether the month is a valid month for that year.
 /// Currently the functionality is the same for each year.
 /// </summary>
 /// <param name="month">The month.</param>
 /// <returns></returns>
 public bool IsValidMonth(int month)
 {
     if (ValidMeetingMonths.Contains(month))
     {
         return(true);
     }
     return(false);
 }
Example #2
0
 /// <summary>
 /// Gets the date rules.
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns></returns>
 protected override List <DateTime> DateRules(int year)
 {
     return(ValidMeetingMonths.Select(month => RuleHelper.GetNthDayInMonth(month, 1, 3, year, 0, 0)).ToList());
 }