I have a collection that I want to serialize in an XML document. Grade:
public class Contacts{ public List<PendingContactDTO> contacts { get; set; } }
My main problem is that now my xml looks like
<Contacts> <contacts> <..... all contacts> </contacts> </Contacts>
The fact is that I want to look like this:
<contacts> <..... all contacts> </contacts>
Is there any way?
source share