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