public DateRange(DateTime start, DateTime end) { if (start > end) throw new ArgumentException("Start date should be before the end date", "start"); this.start = start; this.end = end; }