If an argument includes the keyword AddressOf
, then the argument must be an invocation target and the parameter it corresponds to must be typed as a delegate whose signature is compatible with the argument. A delegate argument "AddressOf E
" is transformed into "New T(E)
", where T
is the delegate type of the argument. Note that during overload resolution, a delegate argument expression may match more than one type of delegate (assuming they all have the same delegate signature). In that case, the overload resolution will fail.
AddressOf
InvocationTargetExpression