From 9d759639b917d8f3367ee6c63308befac4b25b16 Mon Sep 17 00:00:00 2001 From: ilsix Date: Thu, 4 Apr 2024 22:27:23 +0200 Subject: [PATCH] Tested C# --- c#/helloworld.cs | 10 +++++++++- c#/test.sh | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 c#/test.sh diff --git a/c#/helloworld.cs b/c#/helloworld.cs index 01b3829..8fd5ded 100644 --- a/c#/helloworld.cs +++ b/c#/helloworld.cs @@ -1 +1,9 @@ -Console.WriteLine("Hello World!"); \ No newline at end of file +//compiles and runs successfully +using System; + +public class GFG { + static public void Main() + { + Console.WriteLine("Hello World!"); + } +} diff --git a/c#/test.sh b/c#/test.sh new file mode 100755 index 0000000..5684a6e --- /dev/null +++ b/c#/test.sh @@ -0,0 +1,3 @@ +#!/bin/bash +mcs -out:helloworld helloworld.cs +mono helloworld \ No newline at end of file