Total .NET Analyzer Rule Documentation  

EventSecondArgumentName Rule

Name the second parameter of an event 'e'.

Remarks

Microsoft recommends that there should always be two parameters for all events. The second parameter of the event should be named 'e'.

Resolution

Modify the event to have the state associated with the event as the second parameter, and name this parameter 'e'. For example, the following event handlers follow Microsoft's guidelines:

' VB
Public Delegate Sub MouseEventHandler(sender As Object, e As EventArgs)

// C#
public delegate void MouseEventHandler(object sender, EventArgs e);

See Also

Event Naming Guidelines

Total .NET Analyzer Event Argument Count rule

Total .NET Analyzer Second Event Argument Type rule