When encapsulating a public field in a class that inherits from Attribute, ReSharper does not correct references to the field.
public sealed class TestAttribute : Attribute
{
public string field;
}
public class Test
{
[Test(field = "value")]
public void DoSomething()
{
}
}
Encapsulate field in the TestAttribute class such that field is the private member variable and Field is the public property accessor. Upon completion, the referenced attribute is still [Test(field = "value")].