Skip to content

Commit 43f8633

Browse files
committed
Update CONTRIBUTING.md
1 parent 6887132 commit 43f8633

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

CONTRIBUTING.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ If you want to add your plugin, theme or extension to AppMan, you need to do a p
1111
##### Naming should be in English and clear
1212

1313
```
14-
private int memberProperty = 0;
14+
private Int32 memberProperty = 0;
1515
```
1616

1717
##### Use camelCase for private members and uppercase for public properties, methods and types:
1818

1919
```
20-
private int memberProperty = 0;
20+
private Int32 memberProperty = 0;
2121
22-
public string MemberName = "MemberName";
22+
public String MemberName = "MemberName";
2323
24-
public bool IsMember()
24+
public Boolean IsMember()
2525
{
2626
return true;
2727
}
@@ -30,7 +30,7 @@ public bool IsMember()
3030
##### Use types without explicit path:
3131

3232
```
33-
private void OnFormActivate(object sender, /*System.*/EventArgs e)
33+
private void OnFormActivate(Object sender, /*System.*/EventArgs e)
3434
{
3535
// Do something...
3636
}
@@ -40,7 +40,7 @@ private void OnFormActivate(object sender, /*System.*/EventArgs e)
4040

4141
```
4242
// Comment...
43-
private int memberMethod(int value)
43+
private Int32 memberMethod(Int32 value)
4444
{
4545
4646
@@ -78,7 +78,7 @@ private int memberMethod(int value)
7878
```
7979
if ((val1 > val2) && (val1 > val3))
8080
{
81-
if (val2 > val3)
81+
if (val2 > val3)
8282
{
8383
doThing();
8484
}
@@ -108,7 +108,7 @@ if (val1 > val2 && val1 > val3)
108108
##### Use explicit types:
109109

110110
```
111-
Int myValue = 0;
111+
Int32 myValue = 0;
112112
Point[] myPoints = new Point[]
113113
{
114114
new Point(1, 1),
@@ -126,46 +126,48 @@ namespace MyNameSpace
126126
class MyClass
127127
{
128128
// Comment here...
129-
private int memberProperty = 0;
130-
private int memberProperty2 = 1;
131-
private int memberProperty3 = 2;
129+
private Int32 memberProperty = 0;
130+
private Int32 memberProperty2 = 1;
131+
private Int32 memberProperty3 = 2;
132132
133133
// Comment here...
134-
public string MemberName = "MemberName";
134+
public String MemberName = "MemberName";
135135
136136
// Comment here...
137-
public static bool IsMemberProperty = false;
137+
public static Boolean IsMemberProperty = false;
138138
139139
// Comment here...
140-
public const int CONSTANT = 1;
140+
public const Int32 CONSTANT = 1;
141141
142142
/// <summary>
143143
/// Comment here...
144144
/// </summary>
145-
public bool IsMember()
145+
public Boolean IsMember()
146146
{
147147
return true;
148148
}
149149
150150
/// <summary>
151151
/// Comment here...
152152
/// </summary>
153-
public void MemberMethod(int value)
153+
public void MemberMethod(Int32 value)
154154
{
155+
Int32 temp = MyClass.CONSTANT;
155156
if (value > 2))
156157
{
157-
this.memberProperty2 = 2;
158-
this.memberProperty3 = 3;
158+
this.memberProperty2 = temp;
159+
this.memberProperty3 = temp;
159160
}
160161
else this.memberProperty3 = value;
161162
}
162163
163164
/// <summary>
164165
/// Comment here...
165166
/// </summary>
166-
private int MemberMethodEx(int value)
167+
private Int32 MemberMethodEx(Int32 value)
167168
{
168-
this.memberProperty3 = 4;
169+
Int32 temp = MyClass.CONSTANT;
170+
this.memberProperty3 = temp;
169171
switch (value)
170172
{
171173
case 1: return 1;
@@ -180,7 +182,7 @@ namespace MyNameSpace
180182
/// <summary>
181183
/// Comment here...
182184
/// </summary>
183-
private void OnFormActivate(object sender, EventArgs e)
185+
private void OnFormActivate(Object sender, EventArgs e)
184186
{
185187
this.MemberMethod(null, null);
186188
}

0 commit comments

Comments
 (0)