Class AcceptableValueBase
Base type of all classes representing and enforcing acceptable values of config settings.
Namespace: BepInEx.Configuration
Assembly: BepInEx.dll
Syntax
public abstract class AcceptableValueBase
Constructors
Declaration
protected AcceptableValueBase(Type valueType)
Parameters
Type | Name | Description |
---|---|---|
System.Type |
valueType |
Type of values that this class can Clamp. |
Properties
Type of the supported values.
Declaration
public Type ValueType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
Change the value to be acceptable, if it's not already.
Declaration
public abstract object Clamp(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object |
value |
Returns
Type | Description |
---|---|
System.Object |
Check if the value is an acceptable value.
Declaration
public abstract bool IsValid(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object |
value |
Returns
Type | Description |
---|---|
System.Boolean |
Get the string for use in config files.
Declaration
public abstract string ToDescriptionString()
Returns
Type | Description |
---|---|
System.String |