public static void AppliesTo(DayOfWeekWorkScheduleRule obj, MethodReturnEventArgs<System.Boolean> e, System.DateTime date) { if (obj.CheckValidDate(date)) { e.Result = (int)date.DayOfWeek == (int)obj.DayOfWeek; } }
public static void ToString(DayOfWeekWorkScheduleRule obj, MethodReturnEventArgs<System.String> e) { e.Result = string.Format(e.Result + "; every {0}", obj.DayOfWeek.ToString()); }