O'Reilly logo
  • Kimberly Szozda thinks this is interesting:

You can perform each step discretely or combine all three steps into one statement, as shown in the following C# statement:

int[] dailyWeights = new int[5] { 155, 153, 154, 152, 150 };

The equivalent statement in Visual Basic is

Dim dailyWeights() As Integer = New Integer(4) {155, 153, 154, 152, 150}

From

Cover of Visual Studio® 2010 All-in-One For Dummies®

Note

Declare an array