File tree Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
1
## How to Contribute
2
2
3
3
1 . Follow the code style
4
- ``` C#
5
- if ()
4
+ ``` cs
5
+ if (.. . )
6
6
{
7
7
8
8
}
9
9
10
+ if (.. .)
11
+ return ;
12
+
10
13
try
11
14
{
12
15
@@ -16,30 +19,49 @@ catch (...)
16
19
17
20
}
18
21
19
- if ()
20
- return ;
21
-
22
22
for (int i = 0 ; i <= 1 ; i ++ )
23
23
{
24
24
25
25
}
26
26
27
+ foreach (Type variable in new Type ())
28
+ {
29
+
30
+ }
31
+
32
+ foreach (var variable in new Dictionary <string , string >().keys )
33
+ {
34
+
35
+ }
36
+
27
37
while (.. .)
28
38
{
29
39
30
40
}
31
41
42
+ using (.. .)
43
+ {
44
+
45
+ }
46
+
32
47
private int _name ;
33
48
public int Name ;
34
49
public int Name { get ; private set ; }
50
+ Only use var when using foreach with a dictionary 's key or value sets .
35
51
36
52
public void Example (int argName )
37
53
{
38
54
39
55
}
56
+
57
+ ~bit
58
+ ~(bit ^ 0xFF )
59
+ ((bit & 0xFF ) | 0xFF ) >> 0xFF
40
60
```
41
61
42
62
2. Push changes to a new local branch to the 'dev ' branch . ('contributor -feature ' -> 'dev ')
43
- 3 . You are encouraged to start a PR early so we can spy on what you are working on!
63
+ 3. You are encouraged to start a PR early so we can spy on what you are working on ! [ How to do that ]( https : // github.blog/2019-02-14-introducing-draft-pull-requests/)
44
64
4. Versions should not be bumped at all
45
- 5 . gitignore is free game add anything that fits
65
+ 5. gitignore is free game add anything that fits
66
+ 6. Do not use #region
67
+ 7. Tabs only . Spaces will not be accepted .
You can’t perform that action at this time.
0 commit comments