Class DictionaryToArrayConverter
- Namespace
- Bannerlord.ButterLib.SaveSystem
- Assembly
- Bannerlord.ButterLib.dll
public sealed class DictionaryToArrayConverter : JsonConverter
- Inheritance
-
DictionaryToArrayConverter
- Inherited Members
-
JsonConverter.CanReadJsonConverter.CanWrite
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
public override bool CanConvert(Type objectType)
Parameters
objectTypeTypeType of the object.
Returns
- bool
trueif this instance can convert the specified object type; otherwise,false.
ReadJson(JsonReader, Type, object?, JsonSerializer)
Reads the JSON representation of the object.
public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
Parameters
readerJsonReaderThe JsonReader to read from.
objectTypeTypeType of the object.
existingValueobjectThe existing value of object being read.
serializerJsonSerializerThe calling serializer.
Returns
- object
The object value.
WriteJson(JsonWriter, object?, JsonSerializer)
Writes the JSON representation of the object.
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
Parameters
writerJsonWriterThe JsonWriter to write to.
valueobjectThe value.
serializerJsonSerializerThe calling serializer.
This page was last modified at 02/06/2024 11:11:43 +02:00 (UTC).
Commit Message
Author: Vitalii Mikhailov
Commit: afe4722382576c1b56cdc1f621d23c975b59dfa5
Tabulation fix