"dim x () as a byte equivalent to" dim x as byte () "?

Possible duplicate:
Differences between Dim Files () Like String and Dim Files Like String ()?

Are these two statements equivalent? They seem to behave the same, but is there any difference in the resulting "x"?

Dim x() As Byte Dim x As Byte() 
+4
source share
1 answer

They are exactly the same, and you can see that if you examine them using the Reflector. They both compile with the same IL.

See also this question , which is identical if you change Byte to String .

+4
source

All Articles