I've seen similar questions on SO about this, but this is specifically about RestSharp XmlSerializer.
I want this:
<Item>
...
</Item>
<Item>
...
</Item>
<Item>
...
</Item>
<Item>
...
</Item>
I have this:
public class MyPoco
{
[SerializeAs( Name = "Item")
public List<Item> Items { get; set; }
}
public class Item
{
...
}
What I'm getting is this:
<Item>
<Item>
...
</Item>
<Item>
...
</Item>
<Item>
...
</Item>
</Item>
How do I get rid of the parent element when using RestSharp?