protected override void AddControl(object control)
{
switch (mode) {
case ParseChildrenMode.DefaultProperty:
case ParseChildrenMode.Properties:
throw new Exception ("Cannot add a control to default property");
case ParseChildrenMode.DefaultCollectionProperty:
PropertyDescriptor pd = pdc[parseAtt.DefaultProperty];
((IList)pd.GetValue(obj)).Add(control);
return;
case ParseChildrenMode.Controls:
throw new NotImplementedException("Child controls have not yet been implemented.");
}
}