2016-09-25 38 views

回答

1

没有在VB.NET等同匿名代码块。

您可以用模拟如果属实:

If True Then 
End If 

或者,如果你不需要一个块的范围,你可以使用区域:

#Region "This is the code to be collapsed" 
#End Region 
0

你可以得到最接近的是:

If True Then ' anonymous code block starts here 
    ' ... 
End If ' anonymous code block ends here 
相关问题