Skip to content

AcceptableValueBase Class

Base type of all classes representing and enforcing acceptable values of config settings.

C#
public abstract class AcceptableValueBase

Inheritance object

C#
protected AcceptableValueBase(Type valueType)

valueType Type
Type of values that this class can Clamp.

Type of the supported values.

C#
public Type ValueType { get; }

Change the value to be acceptable, if it’s not already.

C#
public abstract object Clamp(object value)

value object

object

Check if the value is an acceptable value.

C#
public abstract bool IsValid(object value)

value object

bool

Get the string for use in config files.

C#
public abstract string ToDescriptionString()

string