.NET 中是否有新的展示位置(如 C++)?
换句话说,如果我在 VB.NET 中分配一些内存
Dim Foo(64) as Byte
我想在 Foo 内存中实例 BarClass (类似于...)
Dim Bar as New BarClass(Foo)
但是,我没有看到任何语法可以做到这一点。
相反,我必须做类似的事情:
Dim Foo(1) as BarClass
Foo(0) = new BarClass(x, y, z)
Foo(1) = new BarClass(x, y, z)