TryGetSettingValue<T> method

bool TryGetSettingValue<T>(
  1. UserSettingName setting,
  2. OutParam<T>? valueOutParam
)
Tries the get the user setting value. The setting. The setting value.

Implementation

bool TryGetSettingValue<T>(
    UserSettingName setting, OutParam<T>? valueOutParam) {
  if (this.Settings.containsKey(setting)) {
    valueOutParam!.param = this.Settings[setting] as T?;
    return true;
  } else {
    valueOutParam = null;
    return false;
  }
}