mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-24 11:05:12 +00:00
docs: "s_" on internal static fields should not be enforced
This commit is contained in:
parent
d3619bc6fb
commit
7e9a293dab
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ Using an IDE that supports the `.editorconfig` standard will make this much simp
|
||||||
|
|
||||||
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.
|
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.
|
||||||
2. We use four spaces of indentation (no tabs).
|
2. We use four spaces of indentation (no tabs).
|
||||||
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.
|
3. We use `_camelCase` for internal and private fields and use `readonly` where possible. Prefix internal and private instance fields with `_`, 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.
|
||||||
4. We avoid `this.` unless absolutely necessary.
|
4. We avoid `this.` unless absolutely necessary.
|
||||||
5. We always specify the visibility, even if it's the default (e.g.
|
5. We always specify the visibility, even if it's the default (e.g.
|
||||||
`private string _foo` not `string _foo`). Visibility should be the first modifier (e.g.
|
`private string _foo` not `string _foo`). Visibility should be the first modifier (e.g.
|
||||||
|
|
Loading…
Reference in a new issue