C#


ROSLYN.DESIGN.CA1003 : Use generic event handler instances (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

A type contains a delegate that returns void, whose signature contains two parameters (the first an object and the second a type that is assignable to EventArgs), and the containing assembly targets Microsoft .NET Framework?2.0.

This check corresponds to Roslyn rule CA1003. For full rule details, see the Microsoft website: CA1003.

Properties

Class Name Use generic event handler instances (C#)
Significance reliability
Mnemonic ROSLYN.DESIGN.CA1003
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Use generic event handler instances (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.