LANGUAGE
Static lambda
Prevents capture of enclosing locals and instance state; static members and constants remain accessible.
Formal Syntax & Structure
csharp syntaxcsharp
static x => expressionWorking Example
Example Snippetcsharp
using System;Func<int,int> plus = static x => x + 1;Console.WriteLine(plus(4));