A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
namespace DevToys.Api;
/// <summary>
/// Represents the arguments of an event raised when an app setting change.
/// </summary>
public sealed class SettingChangedEventArgs : EventArgs
{
/// <summary>
/// Gets the name of the setting that changed.
/// </summary>
public string SettingName { get; }
/// <summary>
/// Gets the new value of the setting.
/// </summary>
public object? NewValue { get; }
/// <summary>
/// Initializes a new instance of the <see cref="SettingChangedEventArgs"/> class.
/// </summary>
/// <param name="settingName">The name of the setting that changed.</param>
/// <param name="newValue">The new value of the setting.</param>
public SettingChangedEventArgs(string settingName, object? newValue)
{
SettingName = settingName;
NewValue = newValue;
}
}