Generic String List : Generic List « Generics « VB.Net






Generic String List

Imports System
Imports System.Collections
Imports System.Collections.Generic

Public Class MainClass
    
    Shared Sub Main(ByVal args As String())
        Dim places As New List(Of String)
        places.Add("A")
        places.Add("B")
        places.Add("C")
        places.Add("D")

    End Sub

End Class
  

           
       








Related examples in the same category

1.Use Generic List to store your own Object