Rename method does not affect symbol used inside nameof()
Hi, first of all, thank You for creating LinqPad. I love it!
During preparing examples for my what's new in c# 6.0 presentation i discovered a behavior that might be considered a bug.
In the following example if I try to apply rename (F2) to the method name, it does change the name in method header, but does not change the symbol used with nameof operator:
During preparing examples for my what's new in c# 6.0 presentation i discovered a behavior that might be considered a bug.
In the following example if I try to apply rename (F2) to the method name, it does change the name in method header, but does not change the symbol used with nameof operator:
void Main() { nameof(SomeMethod).Dump(); } public static void SomeMethod() { return; }
Comments
It would be expected for it to be displayed similarly to `typeof`.
Module
, although it includes the [] in the new name irrespective of what's selected, it only changes the declaration and non-bracketed references.Also, note the different treatment of the tooltip for
System.Reflection.Module
toUserQuery.Module
. Neither requires the [] when preceded by a dot and both require [] when attempted to be referred to on their own, so I don't know why there's a difference here.http://www.linqpad.net/download.aspx