File tree Expand file tree Collapse file tree 5 files changed +52
-52
lines changed
source/scripts/csharp/hello/source Expand file tree Collapse file tree 5 files changed +52
-52
lines changed Original file line number Diff line number Diff line change 1- namespace Scripts
1+ namespace Scripts
22{
3- interface IJump
4- {
5- int Jump ( ) ;
6- }
3+ interface IJump
4+ {
5+ int Jump ( ) ;
6+ }
77}
Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22namespace Scripts
33{
4- public class JumpMaster
5- {
6- public static int SuperJump ( )
7- {
8- IJump sj = new SuperJump ( ) ;
4+ public class JumpMaster
5+ {
6+ public static int SuperJump ( )
7+ {
8+ IJump sj = new SuperJump ( ) ;
99 return sj . Jump ( ) ;
10- }
10+ }
1111
12- public static int TinyJump ( )
13- {
14- IJump sj = new TinyJump ( ) ;
15- return sj . Jump ( ) ;
16- }
17- }
12+ public static int TinyJump ( )
13+ {
14+ IJump sj = new TinyJump ( ) ;
15+ return sj . Jump ( ) ;
16+ }
17+ }
1818}
Original file line number Diff line number Diff line change 1- namespace Scripts
1+ namespace Scripts
22{
3- public class SuperJump : IJump
4- {
5- public int Jump ( )
6- {
7- return 2 ;
8- }
9- }
3+ public class SuperJump : IJump
4+ {
5+ public int Jump ( )
6+ {
7+ return 2 ;
8+ }
9+ }
1010}
Original file line number Diff line number Diff line change 1- namespace Scripts
1+ namespace Scripts
22{
3- public class TinyJump : IJump
4- {
5- public int Jump ( )
6- {
7- return 1 ;
8- }
9- }
3+ public class TinyJump : IJump
4+ {
5+ public int Jump ( )
6+ {
7+ return 1 ;
8+ }
9+ }
1010}
Original file line number Diff line number Diff line change 22
33namespace Scripts
44{
5- public class Program
6- {
5+ public class Program
6+ {
77 public static void SayHello ( )
8- {
9- Console . WriteLine ( "HELLO" ) ;
10- }
8+ {
9+ Console . WriteLine ( "HELLO" ) ;
10+ }
1111
12- public static void Say ( string text )
13- {
14- Console . WriteLine ( text ) ;
15- }
12+ public static void Say ( string text )
13+ {
14+ Console . WriteLine ( text ) ;
15+ }
1616
17- public static int Sum ( int a , int b )
18- {
19- return a + b ;
20- }
17+ public static int Sum ( int a , int b )
18+ {
19+ return a + b ;
20+ }
2121
22- public static string Concat ( string a , string b )
23- {
24- return a + b ;
25- }
22+ public static string Concat ( string a , string b )
23+ {
24+ return a + b ;
25+ }
2626 }
27- }
27+ }
You can’t perform that action at this time.
0 commit comments