parent
586eb334d7
commit
d175b04fe3
@ -62,7 +62,9 @@ If a URL is too long to fit on a single line, make sure it's on a line by itself
|
||||
|
||||
### Names
|
||||
|
||||
Methods & functions are named with an initial capital letter, as is common in other C# code (`DoSomething()`, not `doSomething()`). So are public fields of classes and structs (including properties).
|
||||
Methods & functions are named in `UpperCamelCase`: with an initial capital letter, as is common in other C# code (`DoSomething()`, not `doSomething()`). So are public fields of classes and structs (including properties).
|
||||
|
||||
Constants (fields tagged with the `const` keyword) are named in `CONSTANT_CASE`: all uppercase, with an underscore between each word.
|
||||
|
||||
We generally follow Google's rules for treating acronyms as though they are a single word with only an initial capital letter (`FpsCounter`, not `FPSCounter`), with the exception that if a name is *entirely* an acronym, it stays entirely in uppercase (`AABB`, not `Aabb`). Once it's incorporated into a longer identifier by smooshing it together with some other word, it loses the all-caps treatment (`AabbList`, not `AABBList`).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user