JsonRangeFloatAttribute
A class in Root.Township, Alta.Utilities.
JSON property attribute that clamps a float between a minimum and maximum whenever the property is read or written through Newtonsoft.
- Listed in Utilities and other Alta namespaces
- Inherits or implements
JsonPropertyFilterAttribute
Constructors
| Member | What it is |
|---|---|
JsonRangeFloatAttribute(float min, float max) | Creates a JsonRangeFloatAttribute from min and max. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
override IValueProvider Filter(IValueProvider baseProvider) | Wraps the property's value provider in a JsonRangeFloatValueProvider. |