I have a class with two properties for max and min values. It looks like this (ish):
public class Configuration
{
public int Max { get; set; }
public int Min { get; set; }
}
When I serialize this I get something like:
<Configuration>
<Max>10</Max>
<Min>0</Min>
</Configuration>
However, I need an extra element like this:
<Configuration>
<Bounds>
<Max>10</Max>
<Min>0</Min>
</Bounds>
</Configuration>