TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C# Coding Standard

Rule:  3@307

This rule is Obsolete
Synopsis:Prefix an event handling method with On
Severity Level:6


It is good practice to prefix the method that is registered as an event handler with On. For example, a method that handles the Closing event should be named OnClosing().

Events should also be raised through protected virtual methods if possible, see [9@103].

In some situations, you might be faced with multiple classes exposing the same event name. To allow separate event handlers use a more intuitive name for the event handler, as long as it is prefixed with On.