History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-45532
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Greg Law
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Encapsulate public attribute fields

Created: 15 Jul 07 02:24   Updated: 05 Feb 08 20:22
Component/s: Refactorings - Encapsulate Field
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 468


 Description  « Hide
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")].



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.