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