VB.NET Empty String Array

后端 未结 10 842
花落未央
花落未央 2021-01-07 17:56

How can I create an empty one-dimensional string array?

10条回答
  •  礼貌的吻别
    2021-01-07 18:37

    You don't have to include String twice, and you don't have to use New.
    Either of the following will work...

    Dim strings() as String = {}
    Dim strings as String() = {}
    

提交回复
热议问题