List(of String) or Array or ArrayList

后端 未结 7 2050
借酒劲吻你
借酒劲吻你 2021-01-01 10:27

Hopefully a simple question to most programmers with some experience.

What is the datatype that lets me do this?

Dim lstOfStrings as *IDK*

Dim Stri         


        
7条回答
  •  醉酒成梦
    2021-01-01 10:57

    For those who are stuck maintaining old .net, here is one that works in .net framework 2.x:

    Dim lstOfStrings As New List(of String)( new String(){"v1","v2","v3"} )
    

提交回复
热议问题