6 public object this[string name
] {
10 case "age": return age
;
11 case "dead": return dead
;
17 case "id": id
= (int)value; break;
18 case "age": age
= (double)value; break;
19 case "dead": dead
= (bool)value; break;
23 public static int Main() {
24 Patient bob
= new Patient();
26 if ((bool)bob
["dead"])