Esempio n. 1
0
 public bool Equals(DateRange other)
 {
     return(other.StartDate == this.StartDate && other.EndDate == this.EndDate);
 }
Esempio n. 2
0
 public bool Overlaps(DateRange range)
 {
     return
         ((this.StartDate >= range.StartDate && this.StartDate < range.EndDate) ||
          (range.StartDate >= this.StartDate && range.StartDate < this.EndDate));
 }