Skip to content

Commit 1a90b74

Browse files
authored
Merge pull request #179 from bkoelman/merge-develop-into-master
Merge develop into master
2 parents a7edaf8 + 373d772 commit 1a90b74

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_pages/1700_NamingGuidelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ Suppose you want to define events related to the deletion of an object. Avoid de
137137
### <a name="av1738"></a> Prefix an event handler with "On" (AV1738) ![](/assets/images/3.png)
138138
It is good practice to prefix the method that handles an event with "On". For example, a method that handles its own `Closing` event should be named `OnClosing`. And a method that handles the `Click` event of its `okButton` field should be named `OkButtonOnClick`.
139139

140-
### <a name="av1739"></a> Use an underscore for irrelevant parameters (AV1739) ![](/assets/images/3.png)
141-
If you use a lambda expression (for instance, to subscribe to an event) and the actual arguments of the event are irrelevant, use discards to make that explicit:
140+
### <a name="av1739"></a> Use an underscore for irrelevant lambda parameters (AV1739) ![](/assets/images/3.png)
141+
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:
142142

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

145145
### <a name="av1745"></a> Group extension methods in a class suffixed with Extensions (AV1745) ![](/assets/images/3.png)
146146
If the name of an extension method conflicts with another member or extension method, you must prefix the call with the class name. Having them in a dedicated class with the `Extensions` suffix improves readability.

0 commit comments

Comments
 (0)