JsonMaxAttribute
A class in Root.Township, Alta.Utilities.
JSON property attribute that caps a float at a 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 |
|---|---|
JsonMaxAttribute(float max) | Creates a JsonMaxAttribute from max. |
Fields
Methods
| Member | What it is |
|---|---|
override IValueProvider Filter(IValueProvider baseProvider) | Wraps the property's value provider in a JsonMaxValueProvider. |