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

Converts JSON string representations of URLs to and from System.Uri instances. More...

Public Member Functions

override bool CanConvert (Type objectType)
 Determines if this converter is designed for deserialization to objects of the specified type.
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Parses the json to the specified type.
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Serializes to the specified type.
 

Detailed Description

Converts JSON string representations of URLs to and from System.Uri instances.

Definition at line 9 of file UriConverter.cs.

Inheritance diagram for AnalyzeRe.JsonConverters.UriConverter:

Member Function Documentation

◆ CanConvert()

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

Determines if this converter is designed for deserialization to objects of the specified type.

Parameters
objectTypeThe target type for deserialization.
Returns
True if the type is supported.

Definition at line 17 of file UriConverter.cs.

◆ ReadJson()

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

Parses the json to the specified type.

Parameters
readerNewtonsoft.Json.JsonReader
objectTypeTarget type.
existingValueIgnored
serializerNewtonsoft.Json.JsonSerializer to use.
Returns
Deserialized Object

Definition at line 28 of file UriConverter.cs.

◆ WriteJson()

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

Serializes to the specified type.

Parameters
writerNewtonsoft.Json.JsonWriter
valueObject to serialize.
serializerNewtonsoft.Json.JsonSerializer to use.

Definition at line 48 of file UriConverter.cs.


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