Hi,
You can't use Generics with web services.
Ryan
Thank you,
Ryan Olshan
Website - http://www.StrongTypes.com <http://www.strongtypes.com/>
Group - http://groups.yahoo.com/group/StrongTypes
Blog - http://blogs.strongcoders.com/blogs/ryan/
_____
From: StrongTypes@yahoogroups.com [mailto:StrongTypes@yahoogroups.com] On
Behalf Of matmathiasen
Sent: Friday, April 28, 2006 6:55 AM
To: StrongTypes@yahoogroups.com
Subject: [StrongTypes] Generics and Web Services
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
SPONSORED LINKS
Object
<http://groups.yahoo.com/gads?t=ms&k=Object+oriented&w1=Object+oriented&w2=P
rogramming+languages&c=2&s=48&.sig=f6H4QQqcmcp9kaxQRYmjcw> oriented
Programming
<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Object+oriente
d&w2=Programming+languages&c=2&s=48&.sig=r1ya7ggnEBNyfAH5-mYlDw> languages
_____
YAHOO! GROUPS LINKS
* Visit your group "StrongTypes
<http://groups.yahoo.com/group/StrongTypes> " on the web.
* To unsubscribe from this group, send an email to:
StrongTypes-unsubscribe@yahoogroups.com
<mailto:StrongTypes-unsubscribe@yahoogroups.com?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
_____
[Non-text portions of this message have been removed]