Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] [Fork] [Fork] https://stackoverflow.com/questions/31166013/what-is-the-best-way-to-implement-a-rust-enum-in-c by dbc_MinLength
Roslyn 2.0 Compiler; Environment version: 4.0.30319.42000


XDocument: 
<Response>
  <Inventory>
    <Id>23</Id>
  </Inventory>
  <Inventory>
    <Id>23</Id>
  </Inventory>
</Response>

Deserialized Response: 
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Inventory>
    <Id>23</Id>
  </Inventory>
  <Inventory>
    <Id>23</Id>
  </Inventory>
</Response>

Response constructed with one item: 
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Inventory>
    <Id>23</Id>
  </Inventory>
</Response>
Cached Result
Last Run: 1:45:53 pm
Compile: 0.177s
Execute: 0.395s
Memory: 3.42Mb
CPU: 0.422s