Declaring a byte array in VB.NET

后端 未结 2 1106
天命终不由人
天命终不由人 2021-01-11 16:26

When declaring a byte array, what is the difference between the following? Is there one, or are these just two different ways of going about the same thing?



        
2条回答
  •  遥遥无期
    2021-01-11 16:39

    They're the same thing. You can verify by looking at the compiled code in reflector, or by writing that code in the IDE, then hovering your mouse over each.

    They're reported as "var1() as byte" and "var2() as byte"

    even though the first was declared with the alternate syntax.

提交回复
热议问题