-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Serialization of generics - Xml error #1073
Comments
Good point, so when storing the type name, we should use replace ` with something else. Interested in doing a PR? |
I'm not going to do a PR, I can only partially build Catel here and my git-fu is weak. Instead, I propose the following changes below. The assumption, that seems valid from the test passing, is that using
And a unit test to test this based on the unit test described earlier, but formatted similarly to other unit tests in the Catel project.
|
Thanks for the code. Currently adding the unit tests (converting it a bit so it gets tested against all serializers). |
Works like a charm now, will include this in v5 (beta 16). Thanks a lot for the contribution. |
…character, hexadecimal value 0x60, cannot be included in a name)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When I run the test in the code below, I get an exception when I use the XmlSerializer (using the BinarySerializer - no problem). The message is
It looks like the back-tick that is used in generic names is not compatible with the XmlSerializer.
The test code:
The text was updated successfully, but these errors were encountered: