Skip to main content

AltaContractResolver

A class in Root.Township, Alta.Utilities.

Json.NET contract resolver that lets a JsonPropertyFilterAttribute on a member change how its value is read and written.

Constructors​

MemberWhat it is
AltaContractResolver()Creates an AltaContractResolver with default values.

Fields​

MemberWhat it is
static JsonSerializerSettings settingsReady-made serializer settings: indented output with this resolver.

Methods​

MemberWhat it is
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)Builds the property as usual, then wraps its value provider with the member's filter attribute, if any.