how to declare a list in vb.net code example Example: declare list in vb.net with element Dim list2 As New List(Of Integer)({2, 3, 5, 7})