diff options
Diffstat (limited to 'DayFactory.cs')
-rw-r--r-- | DayFactory.cs | 17 |
1 files changed, 17 insertions, 0 deletions
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 |