Skip to content

Commit

Permalink
Formatted csharp scripts and remove strange unicode.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Apr 8, 2020
1 parent 5c9d717 commit 468ded3
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 52 deletions.
10 changes: 5 additions & 5 deletions source/scripts/csharp/hello/source/IJump.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Scripts
namespace Scripts
{
interface IJump
{
int Jump();
}
interface IJump
{
int Jump();
}
}
26 changes: 13 additions & 13 deletions source/scripts/csharp/hello/source/JumpMaster.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
using System;
using System;
namespace Scripts
{
public class JumpMaster
{
public static int SuperJump()
{
IJump sj = new SuperJump();
public class JumpMaster
{
public static int SuperJump()
{
IJump sj = new SuperJump();
return sj.Jump();
}
}

public static int TinyJump()
{
IJump sj = new TinyJump();
return sj.Jump();
}
}
public static int TinyJump()
{
IJump sj = new TinyJump();
return sj.Jump();
}
}
}
16 changes: 8 additions & 8 deletions source/scripts/csharp/hello/source/SuperJump.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace Scripts
namespace Scripts
{
public class SuperJump : IJump
{
public int Jump()
{
return 2;
}
}
public class SuperJump : IJump
{
public int Jump()
{
return 2;
}
}
}
16 changes: 8 additions & 8 deletions source/scripts/csharp/hello/source/TinyJump.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace Scripts
namespace Scripts
{
public class TinyJump : IJump
{
public int Jump()
{
return 1;
}
}
public class TinyJump : IJump
{
public int Jump()
{
return 1;
}
}
}
36 changes: 18 additions & 18 deletions source/scripts/csharp/hello/source/hello.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

namespace Scripts
{
public class Program
{
public class Program
{
public static void SayHello()
{
Console.WriteLine("HELLO");
}
{
Console.WriteLine("HELLO");
}

public static void Say(string text)
{
Console.WriteLine(text);
}
public static void Say(string text)
{
Console.WriteLine(text);
}

public static int Sum(int a,int b)
{
return a+b;
}
public static int Sum(int a, int b)
{
return a + b;
}

public static string Concat(string a,string b)
{
return a+b;
}
public static string Concat(string a, string b)
{
return a + b;
}
}
}
}

0 comments on commit 468ded3

Please sign in to comment.