Editorconfig Guide.e

Prefer method group conversion

EditorConfig key: csharp-style-prefer-method-group-conversion

Prefer method group conversion

csharp-style-prefer-method-group-conversion

This option controls whether method group conversions should be preferred over lambdas that merely forward their arguments to a method.

Default value:

true

Possible values:

  • true
  • false

Examples

true
numberStrings
  .Select(int.Parse);
false
numberStrings
  .Select(s => int.Parse(s));