Given this XML:
<Items>
<Item>a</Item>
<Item>b</Item>
</Items>
How can I deserialize this using XmlSerializer? Either into an array of some custom type or simply into a string[].
I know this can be done if the innermost tags are called “string” but I’d like to keep a custom name.
Here’s one way demonstrating using the XmlSerializer in LINQPad
Here’s another way using XDocument