Recommended pattern for event declaration and handling
Custom event handlers should always follow this pattern: All I’ve done that is special here is declared the event handler with an empty delegate. This provides two advantages (the big one being the second). As a clearer, more complete example imagine we have the following code: but just by modifying the event declaration to: you […]
. Read more