C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
JsonCreationConverter.cs
Go to the documentation of this file.
1using Newtonsoft.Json;
2using Newtonsoft.Json.Linq;
3
5{
7 public static class JsonCreationConverter
8 {
14 public static JsonReader CopyReaderForObject(JsonReader reader, JObject jObject)
15 {
16 JsonReader jObjectReader = jObject.CreateReader();
17 jObjectReader.Culture = reader.Culture;
18 jObjectReader.DateFormatString = reader.DateFormatString;
19 jObjectReader.DateParseHandling = reader.DateParseHandling;
20 jObjectReader.DateTimeZoneHandling = reader.DateTimeZoneHandling;
21 jObjectReader.FloatParseHandling = reader.FloatParseHandling;
22 jObjectReader.MaxDepth = reader.MaxDepth;
23 jObjectReader.SupportMultipleContent = reader.SupportMultipleContent;
24 return jObjectReader;
25 }
26 }
27}
static JsonReader CopyReaderForObject(JsonReader reader, JObject jObject)
Creates a new reader for the specified jObject by copying the settings from an existing reader.