I have a simple array that I need to serialize as part of a larger object.
public class Holder
{
public int ID { get; set; }
public string Name { get; set; }
public Thing[] Thingies { get; set; }
}
public class Thing {}
Normally this would be serialized as:
...
<Holder>
<ID>...</ID>
<Name>...</Name>
<ArrayOfThing>
<Thing>...</Thing>
<Thing>...</Thing>
<Thing>...</Thing>
...
</ArrayOfThing>
</Holder>
Without worrying too much about deserialization, is there a way I could simply remove the ArrayOf element, but keep the elements inside, so that I'd have:
...
<Holder>
<ID>...</ID>
<Name>...</Name>
<Thing>...</Thing>
<Thing>...</Thing>
<Thing>...</Thing>
...
</Holder>