Skip to main content

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.

Constructors​

MemberWhat it is
JsonRangeAttribute(int min, int max)Creates a JsonRangeAttribute from min and max.

Fields​

2 private and internal fields
MemberWhat it is
private int maxThe upper limit.
private int minThe lower limit.

Methods​

MemberWhat it is
override IValueProvider Filter(IValueProvider baseProvider)Wraps the property's value provider in a JsonRangeValueProvider.