Hi,
I'm trying to create the schema (XSD) for a class that inherites from
System.Collections.CollectionBase, and indicate the ElementName of the
root and every item. This is an example:
[XmlRoot("list")]
public class MyList : System.Collections.CollectionBase
{
(...)
public MyListItem this[int index]
{
get { return this.List[index] }
set { this.List[index] = value; }
}
(...)
}
And I want an xml like this:
<list>
<listItem></listItem>
</list>
But I get the following:
<list>
<MyListItem></MyListItem>
</list>
How can I give a specific name to the items of the collection (I need
to inherite from CollectionBase, that isn't negotiable ;-))?
Thanks a lot in advance,
Marc.