File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed
Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change 22
331 . Follow the code style
44``` cs
5- if ()
5+ if (.. . )
66{
77
88}
99
10+ if (.. .)
11+ return ;
12+
1013try
1114{
1215
@@ -16,32 +19,39 @@ catch (...)
1619
1720}
1821
19- if (.. .)
20- return ;
21-
2222for (int i = 0 ; i <= 1 ; i ++ )
2323{
2424
2525}
2626
27- while ( .. . )
27+ foreach ( Type variable = new Type () )
2828{
2929
3030}
3131
32- private int _name ;
33- public int Name ;
34- public int Name { get ; private set ; }
35- Do not use var .
32+ foreach ( var variable = new Dictionary < string , string >(). keys )
33+ {
34+
35+ }
3636
37- public void Example ( int argName )
37+ while ( .. . )
3838{
3939
4040}
4141
4242using (.. .)
4343{
44+
45+ }
46+
47+ private int _name ;
48+ public int Name ;
49+ public int Name { get ; private set ; }
50+ Only use var when using foreach with a dictionary 's key or value sets .
4451
52+ public void Example (int argName )
53+ {
54+
4555}
4656
4757~bit
You can’t perform that action at this time.
0 commit comments