예제 #1
0
 public ImmutableTimeRange(ImmutableTimeRange source)
     : this(source.Start, source.End)
 {
 }
예제 #2
0
 private bool StartIsInRangeOf(ImmutableTimeRange other)
 {
     return(Start >= other.Start && Start <= other.End);
 }
예제 #3
0
 public bool Consumes(ImmutableTimeRange other)
 {
     return((other.Start >= Start) && (other.End <= End));
 }
예제 #4
0
 private bool EndIsInRangeOf(ImmutableTimeRange other)
 {
     return(End >= other.Start && End <= other.End);
 }
예제 #5
0
 public bool OverLaps(ImmutableTimeRange other)
 {
     return(StartIsInRangeOf(other) || EndIsInRangeOf(other) || Consumes(other));
 }