I am serializing a set of classes that looks like:
public class Wrapper
{
IInterface obj;
}
public interface IInterface
{
}
[XmlType("ClassA")]
public ImplA : IInterface
{
}
Currently the XML generated looks like
<Wrapper>
<IInterface xsi:type="ClassA">
...
</IInterface>
</Wrapper>
Is there anyway to include the custom type name as the element name, instead of including it in the type?