diff --git a/csharp/Program.cs b/csharp/Program.cs new file mode 100644 index 0000000..305fa0b --- /dev/null +++ b/csharp/Program.cs @@ -0,0 +1,24 @@ +using System; + +namespace csharp +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + + // print out a variable + string helloString = "Hello World! as a varible"; + Console.WriteLine(helloString); + + // use string formatting + string wrld = "World!"; + Console.WriteLine($"Hello {wrld}, we're doing string formatting"); + + //more formatting + string h = "Hello"; + Console.WriteLine(string.Format("{0} World", h)); + } + } +} diff --git a/csharp/csharp.csproj b/csharp/csharp.csproj new file mode 100644 index 0000000..8e047a0 --- /dev/null +++ b/csharp/csharp.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.0 + + +