I have tried this several ways and keep getting an error each time I try.
This is using .net 3.5 with asp.net(forms) and vb.net.
Examples:
Dim _registrations = New List(Of Integer)
Dim regList As String
Dim ListOfReg = _registrations.convertall(Of String)(Function(i As Integer) i.ToString())
regList = String.Join(",", ListOfReg.ToArray())
Error message:
Overload resolution failed because no Public 'convertall' can be called with these arguments:
'Public Function ConvertAll(Of String)(converter As System.Converter(Of Integer,String)) As System.Collections.Generic.List(Of String)':
Argument matching parameter 'converter' cannot convert from 'VB$AnonymousDelegate_0(Of Integer,String)' to 'Converter(Of Integer,String)'.
Other attempt:
regList = String.Join(",", (_registrations.Select(Function(reg) reg.ToString()).ToArray()))
Error message:
Public member 'Select' on type 'List(Of Integer)' not found.
Any help is appreciated.
Thanks.