예제 #1
0
        public int CompareTo(object otherObj)
        {
            if (!(otherObj is ElectionPhaseForm otherForm))
            {
                throw new Exception("Cannot compare ElectionPhaseForm with other types");
            }

            return(BeginsAt.CompareTo(otherForm.EndsAt));
        }
예제 #2
0
파일: Sprint.cs 프로젝트: Konohomaru/Gira
 public bool ContainsDate(DateTime date)
 {
     return(date >= BeginsAt && date < BeginsAt.AddDays(Length));
 }