Skip to content

Commit 8db6d2e

Browse files
authored
Update CONTRIBUTING.md
1 parent ae7c7bf commit 8db6d2e

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

CONTRIBUTING.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
1. Follow the code style
44
```cs
5-
if ()
5+
if (...)
66
{
77

88
}
99

10+
if (...)
11+
return;
12+
1013
try
1114
{
1215

@@ -16,32 +19,39 @@ catch (...)
1619

1720
}
1821

19-
if (...)
20-
return;
21-
2222
for (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

4242
using (...)
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

0 commit comments

Comments
 (0)