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