Skip to main content

RCS1159: Use EventHandler<T>

Properties​

PropertyValue
Default SeverityInfo
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;
}

Applies to​