예제 #1
0
 /** Override the SaveTo and LoadFrom methods of the Appointment class
  * in order to serialize any custom properties. */
 public override void SaveTo(XmlElement element, XmlSerializationContext context)
 {
     base.SaveTo(element, context);
     context.WriteString(_forSubject.Id, "ForSubject", element);
     context.WriteString(_inClassroom.Id, "InClassroom", element);
 }