MonoDevelop tells me the variables are private
by default and there is no point in using private
.
Is it better to use private
access modifier for private variables or just nothing?
MonoDevelop tells me the variables are private
by default and there is no point in using private
.
Is it better to use private
access modifier for private variables or just nothing?
There is no difference!
It’s more a question of code style. I personally find it more readable to always use the private keyword. But you can do whatever you find better, just remember to be consistent with your choice.