G
Guest
In .Net 2.0, how do I convert between arrays and generics?
For example in my webservice if I define
<WebMethod()> _
Public Function TakeList(ByVal list As List(Of Data)) As List(Of Data)
Return list
End Function
In the application that consumes it all of those lists are arrays.
ie. the signature of the web service function looks like:
TakeList(ByRef list As Data())
Returns Data()
Now I can see the .Net framework is taking an array (the list parameter from
me) and morphing it into a generic collection, but how do I do that if I want
to work with generics in my front-end application?
Larry
For example in my webservice if I define
<WebMethod()> _
Public Function TakeList(ByVal list As List(Of Data)) As List(Of Data)
Return list
End Function
In the application that consumes it all of those lists are arrays.
ie. the signature of the web service function looks like:
TakeList(ByRef list As Data())
Returns Data()
Now I can see the .Net framework is taking an array (the list parameter from
me) and morphing it into a generic collection, but how do I do that if I want
to work with generics in my front-end application?
Larry