1739.md

March 1, 2021 ยท View on GitHub

If you use a lambda expression (for instance, to subscribe to an event) and the actual parameters of the event are irrelevant, use the following convention to make that explicit:

button.Click += (_, __) => HandleClick();

Note If using C# 9 or higher, use a single underscore (discard) for all unused lambda parameters and variables.