If an assignment statement includes the keyword AddressOf
, then the expression on the right hand side of the assignment must be an invocation target and the variable must be typed as a delegate whose signature is compatible with the invocation target. A delegate assignment statement "D = E
" is transformed into "D = New T(E)
", where T
is the delegate type of D
.
=
AddressOf
InvocationTargetExpression StatementTerminator