How to declare an array inline in VB.NET

erik picture erik · Nov 14, 2008 · Viewed 63.9k times · Source

I am looking for the VB.NET equivalent of

var strings = new string[] {"abc", "def", "ghi"};

Answer

gfrizzle picture gfrizzle · Nov 14, 2008
Dim strings() As String = {"abc", "def", "ghi"}