Hi
I'm using the Compact Framework and I want to create an instance of a
delegate from a MethodInfo but Delegate.CreateDelegate() isn't supported on
the CF.
So can anyone tell me how to do this "long hand" in C#. I'm using a custom
attribute to mark methods that I want to call at runtime. I want to create a
delegate to these methods and I can easily get a MethodInfo for them. But
the last step of creating the delegate eludes me. It can't be hard, surely,
as a delegate is a very simple object.
Any ideas?
Cheers,
MikeS.
xor - 07 Dec 2003 04:22 GMT
To call a method dynamiclly at runtime, you can use MethodInfo.Invoke()
"Mike Scott" <mike@nospam.com> ????????????
:#9nkcV2qDHA.1656@tk2msftngp13.phx.gbl...
> Hi
[quoted text clipped - 14 lines]
>
> MikeS.