P
pamelafluente
Hi,
I am doing something like the following. MyDelegate is some delegate
function I have defined and SomeMethodInfo is a function of type
MyDelegate
dim MethodToCall as MyDelegate
SomeMethodInfo = Me.SomeClassInstance.GetType.GetMethod("SomeMethod")
MethodToCall = SomeMethodInfo ?? how do I assign the address of the
method ?
I do not know how to make MethodToCall to point to the method.
Ideally I want : MethodToCall = addressOf SomeMethodInfo.Method
How can I do that ?
-P
I am doing something like the following. MyDelegate is some delegate
function I have defined and SomeMethodInfo is a function of type
MyDelegate
dim MethodToCall as MyDelegate
SomeMethodInfo = Me.SomeClassInstance.GetType.GetMethod("SomeMethod")
MethodToCall = SomeMethodInfo ?? how do I assign the address of the
method ?
I do not know how to make MethodToCall to point to the method.
Ideally I want : MethodToCall = addressOf SomeMethodInfo.Method
How can I do that ?
-P