JsonRangeAttribute
A class in Root.Township, Alta.Utilities.
JSON property attribute that clamps an int 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 |
|---|---|
JsonRangeAttribute(int min, int max) | Creates a JsonRangeAttribute 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 JsonRangeValueProvider. |