NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.NetCoreWebDriverFactory.Utils.Converters.SizeJsonConverter Class Reference

Based on code at https://stackoverflow.com/questions/21471404/how-to-de-serialize-system-drawing-size-to-object-using-json-net More...

Inheritance diagram for AlexanderOnTest.NetCoreWebDriverFactory.Utils.Converters.SizeJsonConverter:

Public Member Functions

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

Detailed Description

Member Function Documentation

◆ CanConvert()

override bool AlexanderOnTest.NetCoreWebDriverFactory.Utils.Converters.SizeJsonConverter.CanConvert ( Type  objectType)

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.

◆ ReadJson()

override object AlexanderOnTest.NetCoreWebDriverFactory.Utils.Converters.SizeJsonConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

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.

◆ WriteJson()

override void AlexanderOnTest.NetCoreWebDriverFactory.Utils.Converters.SizeJsonConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

Writes the JSON representation of the object.

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

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