Debian Codegraph @

tests/indent/c-sharp.cs

raw symbols SCIP
1 namespace App
2 {
3 public enum Color
4 {
5 Red,
6 Green,
7 }
8
9 public class Counter
10 {
11 private int count;
12
13 public int Bump()
14 {
15 if (count > 0)
16 {
17 count += 1;
18 }
19 else
20 {
21 count = 0;
22 }
23 return count;
24 }
25
26 public string Classify(int x)
27 {
28 switch (x)
29 {
30 case 1:
31 return "one";
32 default:
33 return "many";
34 }
35 }
36 }
37 }