Convert method group to lambda
Property | Value |
---|---|
Id | RR0137 |
Applicable Syntax | method group |
Enabled by Default | ✓ |
Usage
Example #1
before.cs
Func<object, object, object> func = Foo;
after.cs
Func<object, object, object> func = (f, g) => Foo(f, g)
Configuration
roslynator_refactoring.convert_method_group_to_lambda.enabled = true|false