Table of Contents

Class AppScope

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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

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

Examples

Use the SerializableConfigurationProperty 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
},