If i Serializable the following code using XmlSerializer.
[XmlRoot("products")]
public class Products : List<Product>
{
}
public class Product
{
}
I get the following xml
<ArrayOfProduct>
<Product/>
</ArrayOfProduct>
How to i write to get the following naming of the tags (products and lower case product)?
<products>
<product/>
</products>
Simple; don't inherit from
List<T>
: