summaryrefslogtreecommitdiff
path: root/HACKING
blob: a0df7085942c32a42eb52c302426445bd690f98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
C# Style Guidelines
===================

  1. Private variable names should be written like:

      lowerCaseStartingLetter

  2. Property names, public variables, and functions should be written like:

      UpperCaseStartingLetter

  3. No spaces before function/conditional parenthesis, braces:

      if(condition) {
	     CallSomeFunction(args);
	  }

  4. One space before a brace on the same line as a conditional:

      while(condition) {
	     ...
	  }

  5. Namespace, Class, Method braces on separate lines:


      namespace Foo
	  {
          public class Bar
		  {
		      private void Method()
	          {
                  if(condition) {
                      ..
				  }
	          }
		  }
      }

   6. Use tabs for indention