Hi folks,
Im writing a small GUI application to deploy objects that allows a
user to create my objects, set it's properties, serialize it into a
binary package for futher load into production enviroment.
Among those "properties", the GUI allows a user to create delegates
at runtime and bind it to the object's events.
Hoever I'could see a way to check which methdos from some class
adhere to same delegate declaration with the EventInfo and MethodInfo
classes. Right now what I'm doing is trying to create a delegate for
each method of the objects, inside a try/catch block, which is an
elegant way, IMHO.
How could I do this check in runtime? By the way I also couldn't
figure out how can I get the invocation list (and for consequence
the're respective MethodInfo) from an EventInfo. I saw some posts
pointing out way to it using FieldInfo, and the casting it, but this
doesn't work always (don't aske me why). I really can't belive that we
have all those features and information trought the runtime, but are'nt
allowed to get them "connected".
Cheers,
Eric.