Total .NET Analyzer Rule Documentation  

DelegateSuffix Rule

Do not use the suffix 'Delegate' for delegate names.

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 do not use the suffix 'Delegate' for delegate names, but rather choose a name that describes the meaning.

Resolution

Remove the suffix Delegate from delegate names. For example, instead of:

' VB
Delegate Function myMethodDelegate(myInt As Integer) As String

// C#
public delegate String myMethodDelegate( int myInt );


you should use:

' VB
Delegate Function myMethod(myInt As Integer) As String

// C#
public delegate String myMethod( int myInt );


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

See Also

Coding Techniques