Replies: 2 comments 1 reply
-
So, I went ahead and tried a few things:
Which is a sketch of what might work. It seems to work, I was more wondering if there were established patterns. |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's a great question - I think what you've got makes sense, too. To be honest, in all this time, I've not deserialized into an enum... SWXMLHash itself uses enums a lot, but I haven't used them in code when pulling data back out. If you don't mind, I might point the FAQ to this discussion as there have been questions about deserializing to classes versus structs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some XML that seems to be a really good fit for deserializing into an enum with associated values.
That seems like a good thing to deserialize into something like:
Now, how might I do this with the deserialization process?
Beta Was this translation helpful? Give feedback.
All reactions