Table of Contents

Create Method

Definition

Namespace
Codebelt.Extensions.Newtonsoft.Json
Assemblies
Codebelt.Extensions.Newtonsoft.Json.dll
Source
src/Codebelt.Extensions.Newtonsoft.Json/DynamicContractResolver.cs

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

Creates the specified resolver.

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

Parameters

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.