Property | Value |
---|---|
Id | RR0203 |
Title | Extract event handler method |
Syntax | lambda expression |
Enabled by Default | ✓ |
void Foo()
{
x.Changed += (s, e) => Bar();
}
void Foo()
{
x.Changed += Changed;
}
void OnChanged(object sender, EventArgs e)
{
Bar();
}
(Generated with DotMarkdown)