I was wiring up an event to use a lambda which needed to remove itself after triggering. I couldn\'t do it by inlining the lambda to the += event (no accessable variable to
You can use an anonymous method instead:
Event += (sender, e) => { // Multiple lines // of code here };