JsonMaxValueProvider
A class in Root.Township, Alta.Utilities.
Value provider used by JsonMaxAttribute: caps a float property at max on get and set.
- Listed in Utilities and other Alta namespaces
- Inherits or implements
JsonRangeValueProviderFilter<float>
Constructors
| Member | What it is |
|---|---|
JsonMaxValueProvider(IValueProvider baseProvider, float max) | Creates a JsonMaxValueProvider from baseProvider and max. |
Fields
Methods
| Member | What it is |
|---|---|
override float Clamp(float value) | Returns the smaller of the value and max. |