[Mono-list] Delegate construction - LuaInterface enhancement

Thomas Harning Jr. harningt at gmail.com
Tue Sep 13 23:13:53 EDT 2005


Just wondering, is there a way to create a function that can be used
in the place of any delegate [well... limiting it to a void return]?
I tried to use void Catchall(params object[] args)  and tried to
obtain the MethodInfo of it to pass into the delegate creation.
(Though I guess I have to use C#2 to be able to pass methodinfo AND
target object..stupid limitations).
Is this catchall idea even possible?  I want to try to assist the
LuaInterface project so that dynamic code generation isn't
necessary.  (It uses it to pass delegates when attaching
eventhandlers and when implementing Proxy classes so that you can
implement subclasses in Lua)

Any ideas?
-- 
Thomas Harning Jr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20050913/ad3cfbf6/signature.bin


More information about the Mono-list mailing list