Is there a VB.NET equivalent of C# out parameters?

后端 未结 7 954
野性不改
野性不改 2020-11-30 06:22

Does VB.NET have a direct equivalent to C# out function parameters, where the variable passed into a function does not need to be initialised?

7条回答
  •  被撕碎了的回忆
    2020-11-30 06:49

    VB has the attribute which should be the same as C# out but today you still get a warning even if you use it. There are details about fixing it in vblang area of github. https://github.com/dotnet/vblang/issues/67.

提交回复
热议问题