1 Imports Microsoft
.VisualBasic
4 Module InvocationStatementA
7 Delegate
Function Df(ByVal a
As Integer)
14 Function f2() As Integer
18 Function f2(ByVal i
As Integer) As Integer
23 Function f2(ByVal o
As Object) As Boolean
27 Function f3(ByVal j
As Integer)
31 Function f4(ByVal j
As Integer)
39 Throw
New Exception("#ISB1 - Invocation Statement failed")
43 Throw
New Exception("#ISB2 - Invocation Statement failed")
46 If Not f2("Hello") Then
47 Throw
New Exception("#ISB3 - Invocation Statement failed")
51 Throw
New Exception("#ISB4 - Invocation Statement failed")
55 d1
= New Df(AddressOf f3
)
56 d2
= New Df(AddressOf f4
)
58 d1
.Invoke(2) : d2
.Invoke(2)
60 Throw
New Exception("#ISB5 - Invocation Statement failed")