dotnet/roslyn

Analyzer renaming method name ignores operand of method address expression

开放

#50,077 创建于 2020年12月19日

 (1 条评论) (0 个反应) (1 位负责人)C# (4,257 个派生)batch import
Area-IDEBugFeature - RenameIDE-CodeStylehelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Version Used: Visual Studio 16.8.2

Steps to Reproduce:

  1. In any C# source file, type:
    class A
    {
        private unsafe static void M1()
        {
            var xx = (delegate*<void>)(&M1);
        }
    }
  1. Change the name of M1 to M2 and use the "Rename 'M1' to 'M2'" refactoring action in VS.

Expected Behavior:

The expression in the initializer of xx changed to (delegate*<void>)(&M2).

Actual Behavior:

The expression in the initializer of xx remain unchanged as (delegate*<void>)(&M1).

贡献者指南