/// <summary> /// Gets the current raw value for the setting with the specified key, or null if the setting is not set. /// </summary> /// <param name="key">A key identifying the setting whose value is to be retrieved.</param> /// <returns>The setting value, or null if the setting is not set.</returns> public string GetRawValue(string key) { string value; if (_overrideRawSettings.TryGetValue(key, out value)) { return(value); } return(_fallbackSettings?.GetRawValue(key) ?? SettingsRegistry.DefaultRegistry.TryGetSetting(key)?.DefaultValueString); }
public string?GetRawValue(string key) { string?value; if (_overrides.TryGetValue(key, out value)) { return(value); } return(_oldSettingsSet?.GetRawValue(key)); }