Skip to content

Commit 9a70e7a

Browse files
authored
Rule number correction (dotnet#49288)
1 parent 108d828 commit 9a70e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/coding-guidelines/coding-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ For other types of files (xml, bat, sh, etc), our current best guidance is consi
77

88
The general rule we follow is "use Visual Studio defaults".
99

10-
1. We use [Allman style](http://en.wikipedia.org/wiki/Indent_style#Allman_style) braces, where each brace begins on a new line. A single line statement block can go without braces but the block must be properly indented on its own line and must not be nested in other statement blocks that use braces (See rule 17 for more details). One exception is that a `using` statement is permitted to be nested within another `using` statement by starting on the following line at the same indentation level, even if the nested `using` contains a controlled block.
10+
1. We use [Allman style](http://en.wikipedia.org/wiki/Indent_style#Allman_style) braces, where each brace begins on a new line. A single line statement block can go without braces but the block must be properly indented on its own line and must not be nested in other statement blocks that use braces (See rule 18 for more details). One exception is that a `using` statement is permitted to be nested within another `using` statement by starting on the following line at the same indentation level, even if the nested `using` contains a controlled block.
1111
2. We use four spaces of indentation (no tabs).
1212
3. We use `_camelCase` for internal and private fields and use `readonly` where possible. Prefix internal and private instance fields with `_`, static fields with `s_` and thread static fields with `t_`. When used on static fields, `readonly` should come after `static` (e.g. `static readonly` not `readonly static`). Public fields should be used sparingly and should use PascalCasing with no prefix when used.
1313
4. We avoid `this.` unless absolutely necessary.

0 commit comments

Comments
 (0)