mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Add ConsoleIO implementation and sample program
This commit is contained in:
7
00_Common/dotnet/Games.Common.Sample/Program.cs
Normal file
7
00_Common/dotnet/Games.Common.Sample/Program.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Games.Common.IO;
|
||||
|
||||
var io = new ConsoleIO();
|
||||
|
||||
var name = io.ReadString("What's your name");
|
||||
|
||||
io.WriteLine($"Hello, {name}");
|
||||
Reference in New Issue
Block a user