When i have a private field in c#, let's say private string a
, which is used in the constructor like this:
a = "1";
Console.WriteLine(a);
and i create a public property via: Ctrl + R + E Visual Studio 2015 automtically replaces all private fields with the public one, means:
A = "1";
Console.WriteLine(A);
Why do VS has this default behaviour, and can it be turned off?
Thank you!