Class ConfigEntry<T>

Provides access to a single setting inside of a ConfigFile.

Inheritance
System.Object ConfigEntryBase ConfigEntry<T>
Inherited Members
ConfigEntryBase.ConfigFile ConfigEntryBase.Definition ConfigEntryBase.Description ConfigEntryBase.SettingType ConfigEntryBase.DefaultValue ConfigEntryBase.GetSerializedValue() ConfigEntryBase.SetSerializedValue(String) ConfigEntryBase.ClampValue<T>(T) ConfigEntryBase.OnSettingChanged(Object) ConfigEntryBase.WriteDescription(StreamWriter) 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
public sealed class ConfigEntry<T> : ConfigEntryBase
Type Parameters
Name Description
T

Type of the setting.

Properties

BoxedValue

Get or set the value of the setting.

Declaration
public override object BoxedValue { get; set; }
Property Value
Type Description
System.Object
Overrides
ConfigEntryBase.BoxedValue

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