Class ConfigWrapper<T>

Provides access to a single setting inside of a ConfigFile.

Inheritance
System.Object ConfigWrapper<T>
Inherited Members
System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx.Configuration
Assembly: BepInEx.Core.dll
Syntax
[Obsolete("Use ConfigFile from new Bind overloads instead")]
public sealed class ConfigWrapper<T>
Type Parameters
Name Description
T

Type of the setting.

Properties

ConfigEntry

Entry of this setting in the ConfigFile.

Declaration
public ConfigEntry<T> ConfigEntry { get; }
Property Value
Type Description
ConfigEntry<T>

ConfigFile

Config file this setting is inside of.

Declaration
public ConfigFile ConfigFile { get; }
Property Value
Type Description
ConfigFile

Definition

Unique definition of this setting.

Declaration
public ConfigDefinition Definition { get; }
Property Value
Type Description
ConfigDefinition

Value

Value of this setting.

Declaration
public T Value { get; set; }
Property Value
Type Description
T

Events

SettingChanged

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

Declaration
public event EventHandler SettingChanged
Event Type
Type Description
System.EventHandler