-
Notifications
You must be signed in to change notification settings - Fork 41
YAXAttributeForClass doesn't work in certain use cases #10
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
Conversation
|
The problem with namespace attributes and prefixes has been solved, but not yet merged with However with all the above done the expected serialization result cannot be achieved with the dictionary |
|
Sounds like you've made good progress, which is awesome! Thanks for looking into the issue and figuring out a fix. Changing the However, if you take a look at #9, its solution might work as a way to allow |
|
If your purpose is parsing an XML created by another application or something, you may find custom serializers handy as well. Take a look at the sample here: |
|
Yea, thanks. I'll look into that. :) |
…as a basis for further development.
…perties implemented from an interface, which are ignored on serialization.
|
Seems like the problem here is due to |
|
YAXLib ignores collection properties by default, to treat them as collection of objects and serialize the members iteratively. However you can add the |
|
I'm doing a fix at the moment which looks promising to me. |
|
It's now the serialization of non-collection properties from objects derived from collection classes supported. Please see the following classes and their corresponding tests:
|
The provided unit test shows how
YAXAttributeForClassdoesn't serialize properties to attributes as it should.