I need to return a class which inherits List(Of ) in a webservice. The consuming application simply views it as an array of the class, not a list. In fact, the Collection class is not even available to derive an object from.
Class Definition:
Public Class TestResultCollection
Inherits List(Of TestResult)
End Class
Consuming App:
Dim TestResults As Gateway.TestResultCollection
TestResults = Gateway.GetTestResultsByRequestIDs(secCode, RequestIDs, sError)
Line 1 above will throw an error: Type Gateway.TestResultCollection is not defined.
I realize that I could just use the array instead, but it's not as easy to work with.
Thanks