コード例 #1
0
 public bool IsLaterThan(DatePeriod another)
 {
     return(!DoesIntersectWith(another) && From > another.To);
 }
コード例 #2
0
 public bool DoesIntersectWith(DatePeriod another)
 {
     return((another.From >= From && another.From < To) ||
            (another.To >= From && another.To < To));
 }