public void Validate (Setting setting) { if (_restrictedKeys.Contains (setting.Key)) throw new ValidationException (setting, String.Format ("Setting {0} cannot be overriden", setting.Key)); }