> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AR0002 - Make Static Lambda

> Code refactoring that makes a lambda expression static

Source: [Ar0002MakeStaticLambdaRefactoring.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers.CodeFixes/Refactorings/AR0002MakeStaticLambdaRefactoring.cs)

## Description

This is a code refactoring that make static lambda.

## Before

```csharp theme={null}
list.Where(x => x > 0);
```

## After

```csharp theme={null}
list.Where(static x => x > 0);
```

## Properties

* **Type**: Refactoring (not a diagnostic)
* **Triggered by**: Right-click context menu or Quick Actions

<Note>
  Refactorings do not produce diagnostics and cannot be configured via
  .editorconfig.
</Note>
