Based on code at https://stackoverflow.com/questions/21471404/how-to-de-serialize-system-drawing-size-to-object-using-json-net
More...
|
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...
|
|
◆ CanConvert()
override bool AlexanderOnTest.NetCoreWebDriverFactory.Utils.Converters.SizeJsonConverter.CanConvert |
( |
Type |
objectType | ) |
|
Determines whether this instance can convert the specified object type.
- Parameters
-
objectType | Type 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
-
reader | The T:Newtonsoft.Json.JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The 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
-
writer | The T:Newtonsoft.Json.JsonWriter to write to. |
value | The value. |
serializer | The calling serializer. |
The documentation for this class was generated from the following file:
- AlexanderOnTest.NetCoreWebDriverFactory/Utils/Converters/SizeJsonConverter.cs