Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 645 Bytes

RCS1159.md

File metadata and controls

36 lines (25 loc) · 645 Bytes

RCS1159: Use EventHandler<T>

Property Value
Id RCS1159
Category Usage
Severity Info

Example

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)