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