rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Scripts/Serialization/Serializers/DictionaryEntrySerializer.cs

16 lines
458 B
C#

using System.Collections;
namespace QFSW.QC.Serializers
{
public class DictionaryEntrySerializer : BasicQcSerializer<DictionaryEntry>
{
public override string SerializeFormatted(DictionaryEntry value, QuantumTheme theme)
{
string innerKey = SerializeRecursive(value.Key, theme);
string innerValue = SerializeRecursive(value.Value, theme);
return $"{innerKey}: {innerValue}";
}
}
}