Skip to main content
Source: Ar0002MakeStaticLambdaRefactoring.cs

Description

This is a code refactoring that make static lambda.

Before

list.Where(x => x > 0);

After

list.Where(static x => x > 0);

Properties

  • Type: Refactoring (not a diagnostic)
  • Triggered by: Right-click context menu or Quick Actions
Refactorings do not produce diagnostics and cannot be configured via .editorconfig.