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

Michael Meeks michael@ximian.com
27 Jun 2002 09:52:56 +0100


Hi Ravi,

On Wed, 2002-06-26 at 17:28, Ravi Pratap M wrote:
> 	I don't think you can get at this information in any way but by using
> the Reflection API once again but that would need the name of the type
> at the minimum and no, not using any clever casting from a method name.

	Yes I can see that it is possible if you have the following:

	myObject.signalConnect (obj, "signal_name",
				anObject, "methodOnAnObject");

	But that rather sucks too - albeit slightly less than some other
approaches. Then at least you can get the type information out of the
equation relatively easily. I would much prefer to pass
anObject.methodOnAnObject to the signalConnect method, as a generic
function pointer.

	Regards,

		Michael.

-- 
 mmeeks@gnu.org  <><, Pseudo Engineer, itinerant idiot