RCS1207: Use anonymous function or method group
Properties
Property | Value |
---|---|
Default Severity | disabled by default |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
var x = items.Select(f => Foo(f));
fix.cs
var x = items.Select(Foo);
Configuration
info
Option roslynator_use_anonymous_function_or_method_group
is required to be set for this analyzer to work.
.editorconfig
# Use anonymous function or method group
roslynator_use_anonymous_function_or_method_group = anonymous_function|method_group