Total .NET Analyzer Rule Documentation  

EventTense Rule

Use present and past tense for Pre and Post Events.

Remarks

Using a standardized naming convention is an important element in writing code that is easy to read, understand, and maintain. Microsoft recommends that you use present and past tense for pre- and post- events, rather than using the prefixes 'Before' and 'After.' For example, use Closing and Closed rather than BeforeClose and AfterClose.

Resolution

Remove the prefixes 'Before' and 'After' from your event names. For pre- events, use '-ing' form of the verb. For post- events, use past tense of the verb.

(Note that this is standardized naming convention, so it has no effect on the execution of code.)

See Also

Event Naming Guidelines