How to create an empty list of strings in VB.NET

1 Answer

0 votes
Imports System
Imports System.Collections.Generic

Class Program
    Public Shared Sub Main()
        Dim stringList As List(Of String) = New List(Of String)()
		
        Dim size As Integer = stringList.Count
		
        Console.WriteLine("The size of the list is: " & size)
    End Sub
End Class



' run:
' 
' The size of the list is: 0
'

 



answered Jul 22 by avibootz
...