有没有可能将一个函数分成几个部分,就像这样?
Function myFunc
Section
Dim i As Integer = 0
...
End Section
Section
Dim i As Integer = 0
...
End Section
End Function
我知道这可以通过
If True Then
Dim i As Integer = 0
...
End If
但这似乎是一种hack的方法
我是不是走了错误的路线?