4 ms·
C# basically forces "e" to be the name of EventArgs in any event handler. You can change it, but it will always default to "e".
by Dwedit 2y ago
C# basically forces "e" to be the name of EventArgs in any event handler. You can change it, but it will always default to "e".
- ZeroClickOk 2y agoI have a hard time normalizing existing codebases where coders insist on using `catch (Exception e)` instead of the default `catch (Exception ex)` and then there are clashes in event handlers with try/catch due to the same variable name...
- rerdavies 2y agoWhich is a PITA when you have a method that takes some event, e, as an argument.