예제 #1
0
 private DateTime EffectiveStartDate(Period period)
 {
     return(StartDate < period.StartDate
         ? period.StartDate
         : StartDate);
 }
예제 #2
0
 private DateTime EffectiveEndDate(Period period)
 {
     return(EndDate > period.EndDate
         ? period.EndDate
         : EndDate);
 }
예제 #3
0
 private bool HasNoOverlapping(Period period)
 {
     return(StartDate > period.EndDate || EndDate < period.StartDate);
 }