src/core/Microsoft.PowerToys.Settings.UI.Lib/SettingsUtils.cs
/// <summary>
/// Get a Deserialized object of the json settings string.
/// </summary>
/// <returns>Deserialized json settings object.</returns>
Get a Deserialized object of the json settings string.
Get a Deserialized object of the json settings string .
public static T GetSettings<T>(string powertoy = DefaultModuleName, string fileName = DefaultFileName)
        {
            var jsonSettingsString = File.ReadAllText(GetSettingsPath(powertoy, fileName));
            return JsonSerializer.Deserialize<T>(jsonSettingsString);
        }
public static T GetSettings < T > ( string powertoy = DefaultModuleName , string fileName = DefaultFileName ) { var jsonSettingsString = File . ReadAllText ( GetSettingsPath ( powertoy , fileName ) ) ; return JsonSerializer . Deserialize < T > ( jsonSettingsString ) ; }
Get a Deserialized object of the json settings string.
Get a Deserialized object of the json settings string .
Deserialized json settings object.
Deserialized json settings object .
powertoy
string
fileName
string