Class ConfigVariable<TConfig, TValue>
Generic typed console variable
public abstract class ConfigVariable<TConfig, TValue> : ConfigVariable where TConfig : Config<TConfig>, new()
Type Parameters
TConfigConfig type
TValueValue type
- Inheritance
-
ConfigVariable<TConfig, TValue>
- Derived
- Inherited Members
Constructors
ConfigVariable(string, MemberAccessor)
protected ConfigVariable(string name, MemberAccessor memberAccessor)
Parameters
namestringmemberAccessorMemberAccessor
Methods
GetValue()
Get the current value of the variable
public override object GetValue()
Returns
- object
Current value
SetValue(object)
Set the value of the variable
public override void SetValue(object value)
Parameters
valueobjectNew value