private void Form1_Load(object sender, EventArgs e) { //说明这个字段确实是使用Date公共属性访问到了date私有变量 CalendarEntry calendarEntry = new CalendarEntry(); calendarEntry.Date = Convert.ToDateTime("1996,11,11"); lblTest.Text = calendarEntry.Date.ToString(); CalendarEntry calendar = new CalendarEntry(); calendar.SetDate("1988,6,7"); lblSet.Text = calendar.Date.ToString(); CalendarEntry birthday = new CalendarEntry(); birthday.day = "Saturday"; }