Skip to content
This repository was archived by the owner on Jan 27, 2019. It is now read-only.

Renamer XmlSerializer compability#547

Open
Rottweiler wants to merge 2 commits into
yck1509:masterfrom
Rottweiler:master
Open

Renamer XmlSerializer compability#547
Rottweiler wants to merge 2 commits into
yck1509:masterfrom
Rottweiler:master

Conversation

@Rottweiler

Copy link
Copy Markdown

Added compability with XmlSerializer, or any other serializer for that matter.

Previously: renamed classes that were meant to be serialized {more than likely caused errors)
Now: does not rename classes marked [Serialized], nor any fields of this class (because XmlSerializer ignores [NonSerialized])

Just can't seem to detect [XmlIgnoreAttribute] for whatever reason (see code).

@fjch1997

fjch1997 commented Nov 9, 2016

Copy link
Copy Markdown

Thanks very much for the fix.

It looks like your change detects SerializableAttribute and prevent properties to be renamed when the class is Serializable.
However, SerializableAttribute wasn't designed to apply on properties. I explained this in another pull request #493

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants