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

16 lines
458 B
C#
Raw Permalink Normal View History

2023-08-22 15:41:12 +03:00
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}";
}
}
}