Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions csharp/Program.cs
Original file line number Diff line number Diff line change
@@ -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));
}
}
}
8 changes: 8 additions & 0 deletions csharp/csharp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

</Project>