What is the difference between XmlArrayAttribute and XmlArrayItemAttribute?

What is the difference between XmlArrayAttribute and XmlArrayItemAttribute? Please explain both sides (e.g. serialization and deserialization).

+3
source share
1 answer

The short answer is that with XmlArrayAttribute you change the serialization order of the entire collection (for example, what is the name of the xml tag that will contain the entries), and with XmlArrayItemAttribute you control each element. Really good examples here: http://msdn.microsoft.com/en-us/library/2baksw0z.aspx

+4
source

Source: https://habr.com/ru/post/1760752/


All Articles