Version Used:
Visual Studio 14.0.25431.01 Update 3
Visual Strudio 15.2 (26430.15)
Steps to Reproduce:
Code::
enum EnumExample
{
Value1
}
public void DoSomething(Action action)
{
}
public void NameOfOperatorError()
{
var tmp1 = nameof(EnumExample.Value1);
DoSomething(() =>
{
var tmp2 = nameof(EnumExample.Value1);
int a = 3;
int b = 3;
var c =
});
}
Edited by @sharwell: Fixed formatting of code block
Version Used: Visual Studio 14.0.25431.01 Update 3 Visual Strudio 15.2 (26430.15) Steps to Reproduce:
Code::
Edited by @sharwell: Fixed formatting of code block