XmlAttribute order or sequence going wrong while serializing .net class #58122
Replies: 2 comments
-
|
Got a proper solution, I removed order from XmlArray and XmlElement and it started working fine, Now my class looks like this |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@MaksymSimutin @dreamcatcher1020 GitHub's Acceptable Use Policies prohibits coordinated or inauthentic activity like rapid questions and answers. As a result, we'll be unmarking the answering and locking the post. Please note any future violations may result in a temporary or indefinite block from the Community. Thanks for understanding. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Body
I have a existing class where we have many public properties. Most of them are decorated with [XmlAttribute]. Issue is when I have 16 member then xml show order of attribute correctly
When I have 17 attribute then it brings 3rd Last and 4th Last attribute in the start and 1st properties goes to 3rd last and 4th last position, i.e. order got disturbed. I tried shuffling element, it only swaps 1st 2 attribute with 3rd and 4th last attribute.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions