Project DescriptionSample demonstrating the use of DynamicMethod and Reflection.Emit to dynamically subscribe to an objects events. Useful for unit testing or aggregating a complex series of events into a single event stream.
See my blog post here for more info. Download the sample here: EventRecorder For an example of how to do the same thing without using Reflection.Emit, see this CodeProject article: http://www.codeproject.com/KB/cs/eventtracingviareflection.aspx
|