Table of Contents

Use Method

Definition

Use<T>(JsonSerializerSettings, Action<T>)

Instructs a JSON serializer to propagate the Newtonsoft.Json.JsonSerializerSettings specified by T on to s1 with an optional setup delegate.

public static void Use<T>(this JsonSerializerSettings s1, Action<T> setup = null) where T : JsonSerializerSettings, IParameterObject, new()

Parameters

s1 JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings to extend.

setup Action<T>

The Newtonsoft.Json.JsonSerializerSettings which need to be configured.

Type Parameters

T

The type of the Newtonsoft.Json.JsonSerializerSettings to use.