Skip to content

ConfigWrapper<T> Class

Provides access to a single setting inside of a ConfigFile.

C#
[Obsolete("Use ConfigFile from new Bind overloads instead")]
public sealed class ConfigWrapper<T>

T
Type of the setting.

Inheritance object

Entry of this setting in the ConfigFile.

C#
public ConfigEntry<T> ConfigEntry { get; }

Unique definition of this setting.

C#
public ConfigDefinition Definition { get; }

Config file this setting is inside of.

C#
public ConfigFile ConfigFile { get; }

Value of this setting.

C#
public T Value { get; set; }

Fired when the setting is changed. Does not detect changes made outside from this object.

C#
public event EventHandler SettingChanged

EventHandler