J
Jarlaxle
I have an xml serialization question i was hoping someone would know.
If you have a class member that is an array...
[XmlArrayItem("Number")]
public List<int> MyNumbers
{
get {...}
set {...}
}
this will get serialized as...
<MyNumbers>
<Number>1</Number>
<Number>2</Number>
<Number>3</Number>
</MyNumbers>
is it possible to have this serialize as a comma-delimited string instead?
i.e...
<MyNumbers>1,2,3</MyNumbers>
if so...what is the best way?
If you have a class member that is an array...
[XmlArrayItem("Number")]
public List<int> MyNumbers
{
get {...}
set {...}
}
this will get serialized as...
<MyNumbers>
<Number>1</Number>
<Number>2</Number>
<Number>3</Number>
</MyNumbers>
is it possible to have this serialize as a comma-delimited string instead?
i.e...
<MyNumbers>1,2,3</MyNumbers>
if so...what is the best way?