Return Collection object from a Web Method
I would like to return a custom collection object from a web method.
I created my custom collection by inheriting CollectionBase and implementing strongly typed
Item, Add, Remove, Count, etc methods/properties. But when the result is serialized to XML
the collection is converted to a generic Array, which is not what I want.
Does anyone know how to return an actual custom collection from a Web Method?
Could you provide some sample code?
PS: I would prefer not to use a DataSet for this.