If you have a class member that is static
and public
. Would you write static public
or public static
? I know they are the same. But is there some recommendation / best practice for writing this?
"public static" is far more common, so you might want to go with that just to increase readability for programmers who never stumbled upon "static public".
see this question
If you download the Microsoft StyleCop Visual Studio addin, it can validate your source code against the rules Microsoft use. It likes the access modifier to come first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With