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 合併指標
 (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).

貢獻者指南