protected override void Reset(ConfigurationElement parentElement)
{
// Ignore the parentElement parameter by changing it to the default settings
DefaultProxySection defaultElement = new DefaultProxySection();
// Initialize the parentElement to the right set of defaults (not needed now,
// but this will avoid errors in the future if SetDefaults is ever overridden in this class.
// ConfigurationElement::InitializeDefault is a no-op, so you aren’t hurting perf by anything
// measurable.
defaultElement.InitializeDefault();
// Finally, pass it to the base class to do the “right things”
base.Reset(defaultElement);
}
}