Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public sealed class DictionaryFormatter<TKey, TValue> : BaseFormatter<Dictionary<TKey, TValue>>, IFormatter<Dictionary<TKey, TValue>>, IFormatter
The type of the dictionary key.
The type of the dictionary value.
public DictionaryFormatter()
protected override void DeserializeImplementation(ref Dictionary<TKey, TValue> value, IDataReader reader)
System.Collections.Generic.Dictionary<TKey, TValue> | value | The uninitialized value to serialize into. This value will have been created earlier using GetUninitializedObject(). |
Sirenix.Serialization.IDataReader | reader | The reader to deserialize with. |
protected override Dictionary<TKey, TValue> GetUninitializedObject()
System.Collections.Generic.Dictionary<TKey, TValue> | A value of null. |
protected override void SerializeImplementation(ref Dictionary<TKey, TValue> value, IDataWriter writer)
System.Collections.Generic.Dictionary<TKey, TValue> | value | The value to serialize. |
Sirenix.Serialization.IDataWriter | writer | The writer to serialize with. |