Skip to main content

Convert method group to lambda

PropertyValue
IdRR0137
Applicable Syntaxmethod 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