We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8493ee1 commit 845aa64Copy full SHA for 845aa64
Src/Section.cs
@@ -421,7 +421,15 @@ public bool Remove(string settingName)
421
/// </summary>
422
/// <param name="setting">The setting to remove.</param>
423
/// <returns>True if the setting was removed; false otherwise.</returns>
424
- public bool Remove(Setting setting) => _settings.Remove(setting);
+ public bool Remove(Setting setting)
425
+ {
426
+ if (setting == null)
427
428
+ throw new ArgumentNullException(nameof(setting));
429
+ }
430
+
431
+ return _settings.Remove(setting);
432
433
434
/// <summary>
435
/// Removes all settings that have a specific name.
0 commit comments