RCS1159: Use EventHandler<T>
Properties
Property | Value |
---|---|
Default Severity | Info |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
public class Foo
{
public event FooEventHandler EventName;
}
public delegate void FooEventHandler(object sender, FooEventArgs args);
fix.cs
public class Foo
{
public event EventHandler<FooEventArgs> EventName;
}