Creating Delegates at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

I am trying to create a mechanism where event handlers are registered at
runtime. What I need to do is to create an instance of a delegate without
knowing the concrete type and callback method at compile time.

In the .NET Framework this can be acheived by using the CreateDelegate
static method and the DynamicInvoke instance method of the System.Delegate
type.

However these members are not available at the Compact Framwork.

I am running out of ideas :-( Any help would be greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top