From a67b0bfdbe851613c456a8e3ad66532ac45fef94 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 2 Dec 2019 22:10:05 -0500 Subject: add DayFactory and cli options for day --- DayFactory.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 DayFactory.cs (limited to 'DayFactory.cs') diff --git a/DayFactory.cs b/DayFactory.cs new file mode 100644 index 0000000..6574a8d --- /dev/null +++ b/DayFactory.cs @@ -0,0 +1,17 @@ +using System; + +namespace aoc2019 +{ + internal class DayFactory + { + internal static Day GetDay(int daynum) + { + switch (daynum) + { + case 1: return new Day1(); + case 2: return new Day2(); + default: return null; + } + } + } +} \ No newline at end of file -- cgit 1.4.1