Skip to content

Instantly share code, notes, and snippets.

Last active Dec 14, 2018
What would you like to do?
Define a delegate
void myMethod()
EventHandlerResult result = new EventHandlerResult();
this.nydelegate(1, 2, result);
var total = result.result();
delegate void myDelegate(real parm1, real parm2, EventHandlerResult result)
//Must be protected, void and empty!
//Add an EventHandlerResult to allow the subscriber to return a value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment