Search the web
Sign In
New User? Sign Up
StrongTypes · Free .NET Generics Help
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Generics and Web Services   Message List  
Reply | Forward Message #19 of 44 |
RE: [StrongTypes] Generics and Web Services

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]




Sat Apr 29, 2006 12:10 am

teranetlists
Offline Offline
Send Email Send Email

Forward
Message #19 of 44 |
Expand Messages Author Sort by Date

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...
matmathiasen
Offline Send Email
Apr 29, 2006
12:08 am

Hi, You can't use Generics with web services. Ryan Thank you, Ryan Olshan Website - http://www.StrongTypes.com <http://www.strongtypes.com/> Group -...
Ryan Olshan
teranetlists
Offline Send Email
Apr 29, 2006
12:10 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help