public object GetSection(string configKey) {
#if DBG
// On debug builds, the config system depends on system.diagnostics,
// so we must always return a valid result and never throw.
if (configKey == "system.diagnostics" && !ClassFlags[ClassIgnoreLocalErrors]) {
return GetSection(configKey, true, true);
}
else {
return GetSection(configKey, false, true);
}
#else
return GetSection(configKey, false, true);
#endif
}