AcceptableValueBase Class
Definition
Section titled “Definition”Base type of all classes representing and enforcing acceptable values of config settings.
public abstract class AcceptableValueBase
Inheritance object
Constructors
Section titled “Constructors”AcceptableValueBase(Type)
Section titled “AcceptableValueBase(Type)”protected AcceptableValueBase(Type valueType)
Parameters
Section titled “Parameters”valueType
Type
Type of values that this class can Clamp.
Properties
Section titled “Properties”ValueType
Section titled “ValueType”Type of the supported values.
public Type ValueType { get; }
Methods
Section titled “Methods”Clamp(object)
Section titled “Clamp(object)”Change the value to be acceptable, if it’s not already.
public abstract object Clamp(object value)
Parameters
Section titled “Parameters”value
object
Returns
Section titled “Returns”IsValid(object)
Section titled “IsValid(object)”Check if the value is an acceptable value.
public abstract bool IsValid(object value)
Parameters
Section titled “Parameters”value
object
Returns
Section titled “Returns”ToDescriptionString()
Section titled “ToDescriptionString()”Get the string for use in config files.
public abstract string ToDescriptionString()