tags:

views:

117

answers:

2

for example:

Dim files() As String = Directory.GetFiles("C:/")

Dim files As String() = Directory.GetFiles("C:/")

what different of them??

thanks you

+2  A: 

They produce exactly the same thing - just two alternative forms of declaration.

Bill
+3  A: 

The two are identical. If you use Reflector, you can see that they are compiled to the same IL:

.field private string[] files
Mark Byers