What is the difference between XmlArrayAttribute and XmlArrayItemAttribute?

10,402

A short answer - with the XmlArrayAttribute you change how the whole collection is serialized (so e.g. what is the name of the xml tag that will contain the entries), and with XmlArrayItemAttribute you control every item. Really good examples are here: http://msdn.microsoft.com/en-us/library/2baksw0z.aspx

Share:
10,402
Mike Cheel
Author by

Mike Cheel

Updated on June 09, 2022

Comments

  • Mike Cheel
    Mike Cheel almost 2 years

    What is the difference between XmlArrayAttribute and XmlArrayItemAttribute? Please explain both sides (i.e. serialzing and deserialzing).