From 8c094fbcfe98a6497f749ed68389c00cb8c6d80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Festim=20Re=C3=A7i?= Date: Sat, 13 Jun 2026 13:25:53 +0200 Subject: [PATCH] Add C# 8 parameter shadowing history item --- docs/csharp/whats-new/csharp-version-history.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/csharp/whats-new/csharp-version-history.md b/docs/csharp/whats-new/csharp-version-history.md index 52927bcffba90..329cff11c0d54 100644 --- a/docs/csharp/whats-new/csharp-version-history.md +++ b/docs/csharp/whats-new/csharp-version-history.md @@ -212,6 +212,7 @@ C# 8.0 is the first major C# release that specifically targets .NET Core. Some f - Positional patterns - [Using declarations](../language-reference/statements/using.md) - [Static local functions](../programming-guide/classes-and-structs/local-functions.md) +- Lambda expressions, anonymous methods, and local functions can declare parameters that shadow local variables and parameters from an enclosing scope. - [Disposable ref structs](../language-reference/builtin-types/ref-struct.md) - [Nullable reference types](../language-reference/builtin-types/nullable-reference-types.md) - [Asynchronous streams](../language-reference/statements/iteration-statements.md#await-foreach)