Are auto implemented private counterparts preceded by a lower case character? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Are auto implemented private counterparts preceded by a lower case character?

When you want to access from within the class the private field that is automatically created when you use auto implementation do you refer to it exactly as it is written with caps or does the compiler create a lower case counterpart?

30th Oct 2016, 5:58 AM
Levi Olorenshaw
Levi Olorenshaw - avatar
1 Answer
0
C# is a case sensitive language you should refer things as they are declared. int number = 4; int Number = 6; Console.WriteLine(
quot;{number}, {Number}"); // Outputs : "4, 6"
4th Nov 2016, 2:10 AM
Michael Dolence