#nullable enable using System.Text.Json.Serialization; namespace Terminal.Gui; /// The class for application-defined configuration settings. /// /// /// /// Use the attribute to mark properties that should be /// serialized as part of application-defined configuration settings. /// /// /// public class MyAppSettings { /// [SerializableConfigurationProperty (Scope = typeof (AppScope))] /// public static bool? MyProperty { get; set; } = true; /// } /// /// THe resultant Json will look like this: /// /// "AppSettings": { /// "MyAppSettings.MyProperty": true, /// "UICatalog.ShowStatusBar": true /// }, /// /// [JsonConverter (typeof (ScopeJsonConverter))] public class AppScope : Scope { }