Skip to content

Commit 326b78b

Browse files
bkoelmanmapfel
authored andcommitted
Updated example to match with naming rule AV1225 (dennisdoomen#73)
1 parent 8fe2efd commit 326b78b

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

Src/Guidelines/1200_MiscellaneousDesignGuidelines.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ An event that has no subscribers is `null`, so before invoking, always make sure
3232

3333
event EventHandler Notify;
3434

35-
void RaiseNotifyEvent(NotifyEventArgs args)
36-
{
37-
EventHandler handlers = Notify;
38-
if (handlers != null)
39-
{
40-
handlers(this, args);
41-
42-
}
43-
}
35+
protected virtual void OnNotify(NotifyEventArgs args)
36+
{
37+
EventHandler handlers = Notify;
38+
if (handlers != null)
39+
{
40+
handlers(this, args);
41+
}
42+
}
4443

4544
**Tip:** You can prevent the delegate list from being empty altogether. Simply assign an empty delegate like this:
4645

0 commit comments

Comments
 (0)