diff options
author | Ben Harris <ben@tilde.team> | 2019-12-02 22:10:05 -0500 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2019-12-02 22:10:05 -0500 |
commit | a67b0bfdbe851613c456a8e3ad66532ac45fef94 (patch) | |
tree | bd8fee73f407b4e89071cbfce8f1d52014b19a20 /DayFactory.cs | |
parent | c8fd30d2ec507e40feb785cefc91f08906afa093 (diff) |
add DayFactory and cli options for day
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 |