Beispiel #1
0
 public bool Contains(HourInterval interval)
 {
     return(interval >= StartInterval && interval <= LastInterval);
 }
Beispiel #2
0
 public static IntervalRange Make(HourInterval itvlA, HourInterval itvlB)
 {
     return(new IntervalRange(itvlA, itvlB));
 }
Beispiel #3
0
 public IntervalRange(HourInterval startInterval, int length)
     : this(startInterval.IntervalId, length)
 {
 }
Beispiel #4
0
 public static IntervalRange Make(
     HourInterval startInterval, int length)
 {
     return(new IntervalRange(startInterval, length));
 }
Beispiel #5
0
 protected IntervalRange(HourInterval itvlA, HourInterval itvlB)
 {
     strtItvlId = (itvlA <= itvlB ? itvlA : itvlB).IntervalId;
     Length     = 1 + (itvlA <= itvlB ? itvlB - itvlA :
                       itvlA - itvlB);
 }