using System; namespace TellDontAsk1 { public class Appointment { public DateTime Start { get; set; } public DateTime End { get; set; } public string Text { get; set; } public bool Contains(DateTime date) { return ((Start <= date) && (date <= End)); } public Appointment From(DateTime startDate) { Start = startDate; return this; } public Appointment To(DateTime endDate) { End = endDate; return this; } } }