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

Ensure that when converting arbitrary dictionaries, nested dictionaries are correctly converted as well. More...

Public Member Functions

override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type.
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object.
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object.
 

Properties

override bool CanWrite [get]
 Gets a value indicating whether this T:Newtonsoft.Json.JsonConverter can write JSON.
 

Detailed Description

Ensure that when converting arbitrary dictionaries, nested dictionaries are correctly converted as well.

Definition at line 9 of file ComplexNestedObjectConverter.cs.

Inheritance diagram for AnalyzeRe.JsonConverters.ComplexNestedObjectConverter:

Member Function Documentation

◆ CanConvert()

override bool AnalyzeRe.JsonConverters.ComplexNestedObjectConverter.CanConvert ( Type  objectType)
inline

Determines whether this instance can convert the specified object type.

Parameters
objectTypeType of the object.
Returns
true if this instance can convert the specified object type; otherwise, false.

Definition at line 27 of file ComplexNestedObjectConverter.cs.

◆ ReadJson()

override object AnalyzeRe.JsonConverters.ComplexNestedObjectConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)
inline

Reads the JSON representation of the object.

Parameters
readerThe T:Newtonsoft.Json.JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.

Definition at line 40 of file ComplexNestedObjectConverter.cs.

◆ WriteJson()

override void AnalyzeRe.JsonConverters.ComplexNestedObjectConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)
inline

Writes the JSON representation of the object.

Parameters
writerThe T:Newtonsoft.Json.JsonWriter to write to.
valueThe value.
serializerThe calling serializer.

Definition at line 19 of file ComplexNestedObjectConverter.cs.

Property Documentation

◆ CanWrite

override bool AnalyzeRe.JsonConverters.ComplexNestedObjectConverter.CanWrite
get

Gets a value indicating whether this T:Newtonsoft.Json.JsonConverter can write JSON.

true if this T:Newtonsoft.Json.JsonConverter can write JSON; otherwise, false.

Definition at line 13 of file ComplexNestedObjectConverter.cs.


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