Project
ReSharper
Priority
Normal
Type
Bug
Fix versions
4.5, 4.5.1, 5.0
State
Fixed
Assignee
Sergey Shkredov
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Greg Law
    4 years ago (15 Jul 2007 03:24)
  • Updated by   Olga Lobacheva
    23 months ago (15 Feb 2010 21:44)
  • Jira: RSRP-45532
    (history, comments)
 
RSRP-45532 Encapsulate public attribute fields
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
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")].

Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments