2016-09-25 37 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 
相關問題