public void Reset (SettingsContext context)
{
SettingsPropertyCollection coll = new SettingsPropertyCollection ();
GetPropertyValues (context, coll);
foreach (SettingsPropertyValue propertyValue in values) {
// Can't use propertyValue.Property.DefaultValue
// as it may cause InvalidCastException (see bug# 532180)
propertyValue.PropertyValue = propertyValue.Reset ();
}
SetPropertyValues (context, values);
}