I was taught that private methods should begin with lowercase for example:
thisIsBestPractice
I’ve installed some code style checkers, and they’re suggesting private methods should begin with upper case.
What is the current preferred industry standard?
The current industry standard is to define a standard and stick to it! What you decide your standard should be is not so important, but what is important is that you all agree to it and use it. This way, everyone knows that a camelCased method is private, although the
privatemodifier would be a giveaway 🙂I personally stick to the default of FxCop – FxCop gets run on every build and will output to the console any code not conforming to the standard