Class VersionJsonConverter
Implements a type converter for Version.
Inheritance
VersionJsonConverter
Assembly: Neon.Common.dll
Syntax
public class VersionJsonConverter : JsonConverter<Version>, IEnhancedJsonConverter
Properties
Type
Returns the type handled by the converter.
Declaration
public Type Type { get; }
Property Value
Methods
ReadJson(JsonReader, Type, Version, bool, JsonSerializer)
Declaration
public override Version ReadJson(JsonReader reader, Type objectType, Version existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
Type |
objectType |
|
Version |
existingValue |
|
bool |
hasExistingValue |
|
JsonSerializer |
serializer |
|
Returns
ToSimpleString(object)
Converts an object instance to a simple (non-JSON) string.
Declaration
public string ToSimpleString(object instance)
Parameters
Type |
Name |
Description |
object |
instance |
The object instance.
|
Returns
Type |
Description |
string |
The rendered string.
|
WriteJson(JsonWriter, Version, JsonSerializer)
Declaration
public override void WriteJson(JsonWriter writer, Version value, JsonSerializer serializer)
Parameters
Type |
Name |
Description |
JsonWriter |
writer |
|
Version |
value |
|
JsonSerializer |
serializer |
|
Implements