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 11## How to Contribute
22
331 . Follow the code style
4- ``` C#
5- if ()
4+ ``` cs
5+ if (.. . )
66{
77
88}
99
10+ if (.. .)
11+ return ;
12+
1013try
1114{
1215
@@ -16,30 +19,49 @@ catch (...)
1619
1720}
1821
19- if ()
20- return ;
21-
2222for (int i = 0 ; i <= 1 ; i ++ )
2323{
2424
2525}
2626
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+
2737while (.. .)
2838{
2939
3040}
3141
42+ using (.. .)
43+ {
44+
45+ }
46+
3247private int _name ;
3348public int Name ;
3449public int Name { get ; private set ; }
50+ Only use var when using foreach with a dictionary 's key or value sets .
3551
3652public void Example (int argName )
3753{
3854
3955}
56+
57+ ~bit
58+ ~(bit ^ 0xFF )
59+ ((bit & 0xFF ) | 0xFF ) >> 0xFF
4060```
4161
42622. 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/)
4464 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