How to create a list of int values in VB.NET

1 Answer

0 votes
Imports System
Imports System.Collections.Generic

Public Class Program
	Public Shared Sub Main()
        Dim int_list As List(Of Integer) = New List(Of Integer)(New Integer() {1, 2, 3, 4, 5, 6})
		
        Console.WriteLine(String.Join(","c, int_list))
    End Sub
End Class




' run:
'
' 1,2,3,4,5,6
'

 



answered Feb 12, 2024 by avibootz
...