C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.JsonConverters.JsonSerializerExtensionMethods Class Reference

Extension Methods to help with copying JsonSerializer settings. More...

Static Public Member Functions

static JsonSerializerSettings GetJsonSerializerSettings (this JsonSerializer toCopy)
 Get a new JsonSerializer with the same settings as this converter.
 
static JsonSerializerSettings ShallowCopy (this JsonSerializerSettings settings)
 Used to ensure the static default serializer settings cannot be accidentally modified.
 

Detailed Description

Extension Methods to help with copying JsonSerializer settings.

Definition at line 8 of file JsonSerializerExtensionMethods.cs.

Member Function Documentation

◆ GetJsonSerializerSettings()

static JsonSerializerSettings AnalyzeRe.JsonConverters.JsonSerializerExtensionMethods.GetJsonSerializerSettings ( this JsonSerializer  toCopy)
inlinestatic

Get a new JsonSerializer with the same settings as this converter.

Returns
A new JsonSerializer with the same settings.

Definition at line 21 of file JsonSerializerExtensionMethods.cs.

◆ ShallowCopy()

static JsonSerializerSettings AnalyzeRe.JsonConverters.JsonSerializerExtensionMethods.ShallowCopy ( this JsonSerializerSettings  settings)
inlinestatic

Used to ensure the static default serializer settings cannot be accidentally modified.

Parameters
settingsThe settings to clone.
Returns
A new JsonSerializerSettings with the same settings.

Definition at line 14 of file JsonSerializerExtensionMethods.cs.


The documentation for this class was generated from the following file: