[Mono-list] late linking & dynamic invocation ...

Mike Kestner mkestner@speakeasy.net
09 Jul 2002 20:52:15 -0500

On Tue, 2002-07-09 at 10:08, Zaphod wrote:
> So with some such new patch , can I just connect ordinary methods ?
> (like I do in C)

> wid.Connect("delete",bar);
> Like some equivalent of gtk_signal_connect ? Or will it still be the
> long winded EventHandler route ?

No, and we won't recommend using win.SetProperty("title", value)
directly either. ;-)  

The most likely change will be the creation of signal specific managed
delegate types with corresponding EventArgs subclasses. Something like:

public delegate void boolEventAnyHandler (object o, boolEventAnyArgs

public class boolEventArgs : EventArgs {
	public bool RetVal {get{} set{}}
	public Gdk.EventAny Event {get{} set{}}

That should satisfy the compile-time type checking purists while
remaining true to the C# event paradigm. :)