让我们假设我们有一个Partial
Class
被调用的Foo
,像这样:
Partial Public Class Foo
Partial Private Sub Bar(lorem As String)
End Function
Private Sub Bar(lorem As String)
'Do something
End Function
End Class
这是一个Class
被调用Foo
并且有一个Partial
方法。我的问题是:为什么Partial
Function
像这样使用 s 是非法的:
Partial Public Class Foo
Partial Private Function Bar(lorem As String) As Boolean
End Sub
Private Function Bar(lorem As String) As Boolean
Return lorem.StartsWith("A")
End Sub
End Class
?