Class GameVersionConverter
Converts a GameVersion to and from a string (e.g. "2010.01.01.1234.5678").
Inheritance
System.Object
GameVersionConverter
Namespace: Dalamud.Game
Assembly: Dalamud.Injector.dll
Syntax
public sealed class GameVersionConverter : JsonConverter
Methods
| Improve this Doc View SourceCanConvert(Type)
Determines whether this instance can convert the specified object type.
Declaration
public override bool CanConvert(Type objectType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | objectType | Type of the object. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
ReadJson(JsonReader, Type, Object, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The |
| System.Type | objectType | Type of the object. |
| System.Object | existingValue | The existing property value of the JSON that is being converted. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| System.Object | The object value. |
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The |
| System.Object | value | The value. |
| JsonSerializer | serializer | The calling serializer. |