JelloScrum.Model.Helpers.DateRange.Overlap C# (CSharp) Méthode

Overlap() public méthode

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

Usage Example

 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