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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 #18 of 44 |
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









Fri Apr 28, 2006 1:55 pm

matmathiasen
Offline Offline
Send Email Send Email

Forward
Message #18 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