Reporter | Lilia Shamsutdinova (Lilia.Shamsutdinova) |
---|---|
Created | Mar 30, 2018 2:11:25 PM |
Updated | Apr 20, 2018 1:28:22 PM |
Resolved | Apr 9, 2018 5:03:42 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Critical |
State | Verified |
Type | Bug |
Fix version | 2018.1 |
Affected versions | 2018.1 |
Fixed In Version ReSharper | 2018.1 EAP 8 |
VsVersion | All Versions |
JetBrains ReSharper Ultimate 2018.1 EAP 6 D Build 12.0.20180330.53424-eap06d
private string myString;
protected string MyString
{
get { return myString; }
set { myString = value; }
}
public void DoSomething(string input)
{
myString = input;
var test = myString;
}
- Invoke Encapsulate Field on
myString
field. - In "Encapsulate Field" dialog set "Create new property" as "Choose property:"; "My" as "Property name:"; uncheck "To auto-property".
- Click Next
Actual result:
New property is not created.
Expected result:
New property is created.