I have this class:
class DoSomething
{
private int timesDone;
...
}
Which is the right way to named variable ‘timesDone’?
Sometimes I see named as m_timesDone. Is this correct? Where I can find information about naming guidelines?
Thank you!
According to MS standards your code is OK. Having prefixes as m_ is not really necessary when you have advanced IDE. However short prefix like _ can be used to take advantage of auto complete feature to quickly sort out class members.
I would recommend you to get a copy of “Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries” book to learn more on MS standards