whenever i try to serialize the dictionary i get the exception:
System.ArgumentException: Type \'System.Collections.Generic.Dictionary`2[[Foo.DictionarySerializ
Exception says "keys must be strings or object" so try
data.Add(Enum.ToObject(typeof(TestEnum), TestEnum.A)); data.Add(Enum.ToObject(typeof(TestEnum), TestEnum.B)); data.Add(Enum.ToObject(typeof(TestEnum), TestEnum.C));
I did not test it though, just a guess.