Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Dwedit
· 2y ago · 0 comments
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".
Comments
[–]
ZeroClickOk
2y ago
I 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 ago
Which is a PITA when you have a method that takes some event, e, as an argument.