-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem serializing (and maybe deserializing?) dynamic types #42
Comments
Workaround for the problem (partial, very inelegant, and without error handling):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's start with simple stuff:
This produces the following exception:
If you do not wrap the
Dictionary<string, dynamic>
into aGameState
class but put it as a top object for serialization:Serialization kind of works (i.e. doesn't crash), but produces nonsensical / useless output:
Am I wrong expecting this to produce proper values at the TOML file level outside of any table instead of bunch of empty inline tables?
Also, I expected the first case with
GameVars
inside ofGameState
class to produce:Hopefully this is easy to fix?
The text was updated successfully, but these errors were encountered: