How to declare an array inline in VB.NET

后端 未结 6 1750
难免孤独
难免孤独 2021-02-04 23:30

I am looking for the VB.NET equivalent of

var strings = new string[] {\"abc\", \"def\", \"ghi\"};
6条回答
  •  鱼传尺愫
    2021-02-05 00:07

    Not a VB guy. But maybe something like this?

    Dim strings = New String() {"abc", "def", "ghi"}
    

    (About 25 seconds late...)

    Tip: http://www.developerfusion.com/tools/convert/csharp-to-vb/

提交回复
热议问题