List(of String) or Array or ArrayList

后端 未结 7 2039
借酒劲吻你
借酒劲吻你 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:54

    You can do something like this,

      Dim lstOfStrings As New List(Of String) From {"Value1", "Value2", "Value3"}
    

    Collection Initializers

提交回复
热议问题