[Mono-list] late linking & dynamic invocation ...
27 Jun 2002 09:52:56 +0100
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",
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
firstname.lastname@example.org <><, Pseudo Engineer, itinerant idiot