[Gtk-sharp-list] more parameters for a callback?

Francis Brosnan Blázquez francis@aspl.es
Sun, 24 Oct 2004 17:50:10 +0200


El dom, 24-10-2004 a las 16:45, Camilo Uribe escribió:
> How can I put more parameters into a callback?

Hi Camilo,

Can you give a more precise example?

Meanwhile you can use ArrayList to hold all you values and keep using
one parameters. 

	ArrayList list = new ArrayList ();

	list.Add ("an string");
	list.Add (5);
	list.Add (false);

	someObject.SetTheCallback (yourStaticMethod, list);

        // then you should be careful at yourStaticMethod reading your
	// parameters becasue order is important.

.-Francis.





> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list