I have the following classes in C# that I want to serialize:
Item
ProjectItem : Item
Folder : Item
Project (Contains a collection of Item, that may be either a ProjectItem or a Folder)
When I serialize a "Project", I get the following...
<Project>
<Item xsi:type="Folder">
<Name>MyFolder</Name>
</Item>
</Project>
While I'd like something like...
<Project>
<Folder>
<Name>MyFolder</Name>
</Folder>
</Project>
Do you have any idea about how to do that? Thanks in advance.