1)
What's the policy for declaring a variable? Should you always use the keyword private
, or is it OK to skip it?
string MyVar1;
vs.
private string MyVar1;
The only reason I see is that Microsoft one day can change the default access modifiers to public
instead of private
.
Where does it say that private is optional? Any references to MSDN?
2) Naming policy for constants?
I have always used caps when writing a constant, but a friend told me that it's against the Microsoft naming policy, is it?
const string MYVAR1;
vs
const string myVar1;
3) Pascal or Camel?
Personally I think that Camel just looks ugly.