<p>In VB6 you can do this:</p>

<pre><code>Dim a As Variant
a = Array(1, 2, 3)</code></pre>

<p>Can you do a similar thing in VB.NET with specific types, like so?:</p>

<pre><code>Dim a() As Integer
a = <strong>Array</strong>(1, 2, 3)</code></pre>

```
```
Dim a() As Integer = New Integer() {1, 2, 3}
```
```