Class DynamicContractResolver
- Namespace
- Codebelt.Extensions.Newtonsoft.Json
- Assembly
- Codebelt.Extensions.Newtonsoft.Json.dll
Provides a factory based way to create and wrap an Newtonsoft.Json.Serialization.IContractResolver implementation.
public static class DynamicContractResolver
- Inheritance
-
DynamicContractResolver
Methods
Create<T>(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.