Exemplo n.º 1
0
 public bool IsLaterThan(DatePeriod another)
 {
     return(!DoesIntersectWith(another) && From > another.To);
 }
Exemplo n.º 2
0
 public bool DoesIntersectWith(DatePeriod another)
 {
     return((another.From >= From && another.From < To) ||
            (another.To >= From && another.To < To));
 }