System.Reflection.Emit.EventBuilder
-
Does anybody know, how the System.Reflection.Emit.EventBuilder works? How can I define a simple event with it?
Some usage examples: http://www.code-magazine.com/article.aspx?quickid=0301051&page=3[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
Some usage examples: http://www.code-magazine.com/article.aspx?quickid=0301051&page=3[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
I haven't any problem with Emit technology, excepting EventBuilder class. It's simple to create an "event" as ilasm does (using delegate field, public methods add_* and remove_*)... but it isn't an event(Type.GetEvent(...) returns null)! EventBuilder perfoms three interesting methods - SetAddOnMethod, SetRemoveOnMethod and SetRaiseMethod. And... what's the methods body should be? ILasm way? If yes, how can I get a delegate field for EventBuilder based event?