Let us suppose that we have a Partial
Class
called Foo
, like this:
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
This is a Class
called Foo
and has a Partial
method. My question is: why is it illegal to use Partial
Function
s like this:
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
?