コード例 #1
0
 public static IEnumerable <DateTime> GetWorkdaysInMonth(int month)
 {
     return(Enumerable.Range(1, GetDaysInMonth(month))
            .Select(day => new DateTime(DateTime.Today.Year, month, day))
            .Where(date => Workdays.Contains(date.DayOfWeek)));
 }