I got a byte array
public byte[] values;
I fill it with data
new byte[64];
I serialize it and I get the following XML part:
<values>
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
</values>
I found the following solution here in SO:
[XmlElement("values", DataType = "hexBinary")]
public byte[] values;
Now I get the same XML as above just with "0" instead of "A".
When I serialize e.g. a Int16/Int32/sbyte array. I get something like this in XML:
<values>0</values>
<values>0</values>
<values>0</values>
In a vertical arrangement.
Now my question: Is it possible to get a byte array also in a vertical arrangement? Like:
<values>00</values>
<values>00</values>
<values>00</values>
Mark