I have the Code Cleanup option "Use explicit 'this' qualifier for fields" set.
I have a class like the following:
C#using System;
namespace Demo
{
public class Repro
{
public static readonly string MyConstant = "constant";
public void DoWork()
{
Console.WriteLine(MyConstant);
}
}
}
If I run code cleanup with this option enabled, I get an incorrect "this" added to the use of the static:
C#using System;
namespace Demo
{
public class Repro
{
public static readonly string MyConstant = "constant";
public void DoWork()
{
Console.WriteLine(this.MyConstant);
}
}
}
Hi Travis,
Thanks for the code snippet.
I have managed to reproduce the issue. Please give us some time to research the issue in detail.