using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text.Json.Serialization; using static Terminal.Gui.ConfigurationManager; #nullable enable namespace Terminal.Gui { public static partial class ConfigurationManager { /// /// 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 { } } }