Table of Contents

Class DynamicContractResolver

Namespace
Cuemon.Extensions.Newtonsoft.Json
Assembly
Cuemon.Extensions.Newtonsoft.Json.dll

Provides a factory based way to create and wrap an Newtonsoft.Json.Serialization.IContractResolver implementation.

public static class DynamicContractResolver
Inheritance
Object
DynamicContractResolver

Methods

Create<T>(T, Action<PropertyInfo, JsonProperty>[])

Creates the specified resolver.

public static IContractResolver Create<T>(T resolver, params Action<PropertyInfo, JsonProperty>[] jsonPropertyHandlers)
    where T : IContractResolver

Parameters

resolver T

The instance of an Newtonsoft.Json.Serialization.IContractResolver implementation.

jsonPropertyHandlers Action<PropertyInfo, JsonProperty>[]

The array of delegates that will handle custom rules of a Newtonsoft.Json.Serialization.JsonProperty.

Returns

IContractResolver

An Newtonsoft.Json.Serialization.IContractResolver implementation of T.

Type Parameters

T

The type that inherits from Newtonsoft.Json.Serialization.IContractResolver.