Skip to main content

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.

Constructors​

MemberWhat it is
JsonMaxAttribute(float max)Creates a JsonMaxAttribute from max.

Fields​

1 private and internal field
MemberWhat it is
private float maxThe upper limit.

Methods​

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