Closed physhi closed 7 years ago
Can you try passing netjsonsetting and use "enum string" property and see if it does preserve it? If it does, it might just be missing from the int version of enum only. I believe this was implement a long time ago. What version are you using?
Thanks,
This issue seem to be similar with https://github.com/rpgmaker/NetJSON/issues/130 .
Even "UseEnumString" does not work. It Serializes enum just fine as string, but deserialization fails.
I'm using ver: v1.2.1.9, last updated Jan 30th from nuget.
Please try it again. It should work now. Thanks again for the find
Enum Flags do not seem to work as expected. when using multiple flag bits, it deserializes the value to 0. Serialization works fine.
Test case below.
` using NUnit.Framework; using System;
} `