Пример #1
0
 protected bool Equals(DateRange other)
 {
     return(From.Equals(other.From) && To.Equals(other.To));
 }
Пример #2
0
 public bool Overlaps(DateRange range)
 {
     return(this.Equals(range) ||
            this.From < range.To && this.To > range.From);
 }