You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering: is something like the following doable in the current state of YamlDotNet? If yes, any idea how? If no, what do you think could be reasonable alternatives?
The idea is to try deserializing an object with a given type, and if it fails, fallback to another type.
The problem with the following code is that when the t1 deserialization attempt fails, the t2 attempt will use the reader that has already moved forward (with the t1 attempt), with no possibility (to my knowledge) to move back to previous position.
Hello everyone!
I was wondering: is something like the following doable in the current state of YamlDotNet? If yes, any idea how? If no, what do you think could be reasonable alternatives?
The idea is to try deserializing an object with a given type, and if it fails, fallback to another type.
The problem with the following code is that when the t1 deserialization attempt fails, the t2 attempt will use the reader that has already moved forward (with the t1 attempt), with no possibility (to my knowledge) to move back to previous position.
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered: