コード例 #1
0
 // returns if the date is included in the range
 public static bool InRange(DateTime date, CalendarDateRange range)
 {
     return(InRange(date, range.Start, range.End));
 }
コード例 #2
0
 // returns if the date is included in the range
 public static bool InRange(DateTime date, CalendarDateRange range)
 {
     return InRange(date, range.Start, range.End);
 }
コード例 #3
0
 /// <summary>
 /// Returns true if any day in the given DateTime range is contained in the current CalendarDateRange.
 /// </summary>
 /// <param name="range"></param>
 /// <returns></returns>
 internal bool ContainsAny(CalendarDateRange range)
 {
     return (range.End >= this.Start) && (this.End >= range.Start);
 }
コード例 #4
0
 /// <summary>
 /// Returns true if any day in the given DateTime range is contained in the current CalendarDateRange.
 /// </summary>
 /// <param name="range"></param>
 /// <returns></returns>
 internal bool ContainsAny(CalendarDateRange range)
 {
     return((range.End >= this.Start) && (this.End >= range.Start));
 }