Skip to content

Use a cached delegate for method group conversion #5835

@gafter

Description

@gafter

The method group conversion today always creates a fresh delegate instance.

Instead, for a method group conversion from a static method we should cache it and only create it once, like we do for non-capturing lambda expressions.

[The C# language spec is being modified to permit this]

Metadata

Metadata

Assignees

No one assigned

    Labels

    4 - In ReviewA fix for the issue is submitted for review.Area-CompilersFeature RequestTenet-PerformanceRegression in measured performance of the product from goals.help wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    Status

    Misc

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions