PC Review


Reply
Thread Tools Rate Thread

Creating Delegates at runtime

 
 
=?Utf-8?B?U3RyaWRlcg==?=
Guest
Posts: n/a
 
      3rd Oct 2005
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!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RyaWRlcg==?=
Guest
Posts: n/a
 
      3rd Oct 2005
I found a really cool article at CodeProject with an implementation of the
CreateDelegate function:

http://www.codeproject.com/netcf/UsingMyXamlCF.asp

"Strider" wrote:

> 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!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced use of delegates to automatically disconnect delegates from a set of events kristian.freed@gmail.com Microsoft C# .NET 2 18th Nov 2006 10:56 PM
creating runtime Nalaka Microsoft Access 2 5th Jan 2006 02:53 AM
Generics - A question on generics - delegates - runtime binding. =?Utf-8?B?YmlndGV4YW4=?= Microsoft C# .NET 10 26th Jul 2005 10:00 PM
PinvokeDLL or delegates or ??? ... Calling C# delegates from C++ as CALLBACK Roland Rehmnert Microsoft Dot NET Compact Framework 1 20th Feb 2005 01:21 PM
creating runtime tabpages with runtime controls C# Elp Microsoft C# .NET 1 16th Jul 2004 05:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:38 PM.