Fetching contributors…
Cannot retrieve contributors at this time
39 lines (28 sloc) 874 Bytes

RCS1159: Use EventHandler<T>

Property Value
Id RCS1159
Category Usage
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -


Code with Diagnostic

public class Foo
    public event FooEventHandler EventName; // RCS1159

public delegate void FooEventHandler(object sender, FooEventArgs args);

Code with Fix

public class Foo
    public event EventHandler<FooEventArgs> EventName;

See Also

(Generated with DotMarkdown)