Skip to content

C# 8 enhancement: lambda and local function parameters can shadow locals and parameters #52972

@jnm2

Description

@jnm2

Type of issue

Typo

Description

dotnet/csharplang#2777:

I believe that in C# 8 we permit lambda and local function parameters to hide names from the enclosing scope. We should specify the change and add it to the feature list for C# 8.

(Also anonymous methods)

This is currently missing from the C# history document.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history?source=docs#c-version-80

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/whats-new/csharp-version-history.md

Document Version Independent Id

575872e5-6273-f8f6-e3e2-2b911cd9d009

Platform Id

65ee47f5-ebe2-c108-ca25-0a16019e535f

Article author

@erikdietrich

Metadata

  • ID: 3d252158-0367-77c8-1816-dbc385c5c40b
  • PlatformId: 65ee47f5-ebe2-c108-ca25-0a16019e535f
  • Service: dotnet-csharp
  • Sub-service: whats-new

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions