I\'ve tried this code in VB:
Dim a(1) As Byte Console.WriteLine(a.Length)
The output is \"2\". Anyone any idea why?
Array starts from position 0. You are defining two positions.
If you want only 1 position, then:
Dim a(0) As Byte
and you will get a.Length as 1.