コード例 #1
0
 public bool Equals(DateRange other)
 {
     return(other.StartDate == this.StartDate && other.EndDate == this.EndDate);
 }
コード例 #2
0
 public bool Overlaps(DateRange range)
 {
     return
         ((this.StartDate >= range.StartDate && this.StartDate < range.EndDate) ||
          (range.StartDate >= this.StartDate && range.StartDate < this.EndDate));
 }