JelloScrum.Model.Helpers.DateRange.Overlap C# (CSharp) Method

Overlap() public method

Does the daterange overlap the specified date?
public Overlap ( System.DateTime date ) : bool
date System.DateTime The date.
return bool
        public bool Overlap(DateTime date)
        {
            return start <= date && end >= date;
        }

Usage Example

Example #1
0
 public void OverlapsOnStartDate()
 {
     dr = new DateRange(start, end);
     Assert.IsTrue(dr.Overlap(new DateTime(2009, 11, 06)));
 }
All Usage Examples Of JelloScrum.Model.Helpers.DateRange::Overlap