How to specify an IMethod as the callback for an event?
I'd like to specify an introduced method on a TypeAspect as the callback for an event handler.
1) When I attempt to just pass it in via a template, I get squigglies:
dictionary.OnDictionaryChanged += myDictionaryChangedMethod; //Doesn't like this since IMethod isn't a System.EventHandler
2) How can I similarly remove the event in a subsequently introduced Dispose() method?
Thank you!
1) When I attempt to just pass it in via a template, I get squigglies:
dictionary.OnDictionaryChanged += myDictionaryChangedMethod; //Doesn't like this since IMethod isn't a System.EventHandler
2) How can I similarly remove the event in a subsequently introduced Dispose() method?
Thank you!