Mega Code Archive
Convert element in List to string
Imports System
Imports System.Linq
Imports System.Collections.Generic
Imports System.Collections
Imports System.Collections.Specialized
Public Class MainClass
Public Shared Sub Main()
Dim numbers As List(Of Integer) = New List(Of Integer)(New Integer() {1, 2, 3, 4, 5, 6, 7, 8, 9})
Dim strings As List(Of String) = numbers.Select(Function(n) n.ToString()).ToList()
Dim str As String
For Each str In strings
Console.WriteLine(str)
Next str
End Sub
End Class