Table of Contents

Class AppSettingsScope

Namespace
Terminal.Gui.Configuration
Assembly
Terminal.Gui.dll

The Scope<T> class for application-defined configuration settings.

[JsonConverter(typeof(ScopeJsonConverter<AppSettingsScope>))]
public class AppSettingsScope : Scope<AppSettingsScope>, IDictionary<string, ConfigProperty>, ICollection<KeyValuePair<string, ConfigProperty>>, IReadOnlyDictionary<string, ConfigProperty>, IReadOnlyCollection<KeyValuePair<string, ConfigProperty>>, IEnumerable<KeyValuePair<string, ConfigProperty>>, IDictionary, ICollection, IEnumerable
Inheritance
AppSettingsScope
Implements
Inherited Members
Extension Methods

Examples

Use the ConfigurationPropertyAttribute attribute to mark properties that should be serialized as part of application-defined configuration settings.

public class MyAppSettings {
[ConfigurationProperty]
public static bool? MyProperty { get; set; } = true;
}

The resultant Json will look like this:

"AppSettings": {
  "MyAppSettings.MyProperty": true,
  "UICatalog.ShowStatusBar": true
},