Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/68756740/deserialization-to-poco-from-json-created-of-xml-document-does-not-work-with-arr by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0)

Dumping object(Person)
 Name     : Test
 Numbers  : [
           1
           ,
           2
           ,
           3
]
Re-serialized Person:
<?xml version="1.0" encoding="utf-16"?>
<Person xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workflows.MassTransit.Hosting.Serialization">
  <Name>Test</Name>
  <Numbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </Numbers>
</Person>
Cached Result
Last Run: 8:27:14 am
Compile: 0.015s
Execute: 0.12s
Memory: 15.34Mb
CPU: 0.135s