In this code:
Dim files() As String = Directory.GetFiles("C:/")
Dim files As String() = Directory.GetFiles("C:/")
is there a difference between the statements?
The two are identical. If you use Reflector, you can see that they are compiled to the same IL:
.field private string[] files
They produce exactly the same thing - just two alternative forms of declaration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With