Hi there,
in this example the code cleanup will add a this-qualifier inside the nameof-operator.
This causes a compiler error CS0026
class TestClass
{
static string Something = nameof(Property);
bool Property { get; set; }
}
becomes
class TestClass
{
static string Something = nameof(this.Property);
bool Property { get; set; }
}
Hi Stefan,
I have reproduced the issue. Once we find an appropriate solution we will notify you in the context of the current thread.
As a temporary workaround you can disable the "Apply 'this' qualifier style" rule in code cleanup options.