I think Generics will solve my need for strong type casting with web
services but I am having a problem with the Web Service Code.
Any ideas on how to pass an Generic List(of T) as a Web Service.
<WebMethod()> _
Public Function List(ByVal RMARecId As Integer) As List(Of
TableDefs.RMA)
Dim obj As RMAs
obj = New RMAs
Return obj.List(RMARecId)
End Function
Public Function List(ByVal RMARecId As Integer) As
System.Collections.Generic.List(Of TableDefs.RMA) Implements
IRMAs.List
Dim dt As DataTable
dt = GetData(RMARecId)
Return CreateList(dt)
End Function
Thanks,
Mat