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

Rule:  9@105

This rule is Obsolete
Synopsis:Implement add/remove accessors if the number of handlers for an event must be limited
Language:C#
Severity Level:8
Category:Delegates and events


Description:

If you implement the add and remove accessors of an event, then the CLR will call those accessors when an event handler is added or removed. This allows limiting the number of allowed event handlers, or to check for certain preconditions.