Hi,
I am trying to serialize List<List<string>.
With the following code
[XmlArrayItem("DataRow")]
[XmlArray("DataRows")]
public List<List<string>DataRows { get; set; }
I get the following
<DataRows>
<DataRow>
<string>123</string>
<string>432</string>
<string>423</string>
</DataRow>
<DataRow>
<string>4543</string>
<string>53</string>
<string>533</string>
</DataRow>
</DataRows>
I want the output to have <DataRowIteminstead of <string>.
One way it mite work is
if I "box" List<stringas SomeList and then have List<SomeList>..But
there should be an easier way.
TIA