We generally follow the guidelines published here: http://www.mono-project.com/Coding_Guidelines.
However, we use
- a line length of 120 characters (instead of 80) and
- 4 space tabs.
If you see discrepancies, please let us know (submit a patch with a fix).
One class per file?
- We try to stick with this principle as much as possible.
- If you are certain that a simple enumeration only needs to exist in a single class, you may include it in the same file. If, however, you end up using an enumeration elsewhere, please extract the enumeration and put it in its own file.