using System.Collections;
public static void Main()
DayPlanner myDay = new DayPlanner();
var dinner =DateTime.Parse("2006/06/26");
var lunch =DateTime.Parse("2006/02/03");
Console.WriteLine( $"{lunch} {dinner}");
myDay[dinner] = "Dinner";
string whatNow = myDay["2006/06/26"];
Console.WriteLine(whatNow ?? "Nothing");
Hashtable _meetings = new Hashtable();
public string this[DateTime date] {
return _meetings[date] as string;
public string this[string datestr] {
return this[DateTime.Parse(datestr)] as string;
this[DateTime.Parse(datestr)] = value;