public DateRange(DateTime start, DateTime end) { if (end < start) { throw new ArgumentOutOfRangeException("end", "End must be greater than or equal to start."); } Start = start; End = end; }