M
M
Hi,
I have a collection of user defined types called
EmployeeCollection which inherits from CollectionBase.
EmployeeCollection is a collection of Employee objects.
When i serialise the collection, the serialized collection
looks like:
<ArrayOfEmployee>
<Employee>
.....
</Employee>
</ArrayOfEmployee>
I tried specifying the XMLRootAttribute for the collection
class, but that gives an error reflecting
EmployeeCollection.
Can anyone please let me know how I can specify my own
element name for the serialised output.
Thanks.
M
I have a collection of user defined types called
EmployeeCollection which inherits from CollectionBase.
EmployeeCollection is a collection of Employee objects.
When i serialise the collection, the serialized collection
looks like:
<ArrayOfEmployee>
<Employee>
.....
</Employee>
</ArrayOfEmployee>
I tried specifying the XMLRootAttribute for the collection
class, but that gives an error reflecting
EmployeeCollection.
Can anyone please let me know how I can specify my own
element name for the serialised output.
Thanks.
M