private void ThrowIfReadOnly() { if (IsReadOnly == true) { throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_read_only)); } }