Update template

I found out that C# 10 added file-scoped namespaces that don't need the whole thing to be wrapped in braces, so that's neat.
This commit is contained in:
2021-12-10 23:51:57 -06:00
parent a522b93f9b
commit 03c6ab60ef

View File

@ -1,29 +1,28 @@
namespace aoc2021 namespace aoc2021;
internal class DayTemplate
{ {
internal class DayTemplate internal static void Go()
{ {
internal static void Go() Logger.Log("Day #");
{ Logger.Log("-----");
Logger.Log("Day #"); var lines = File.ReadAllLines("inputs/##.txt");
Logger.Log("-----"); Part1(lines);
var lines = File.ReadAllLines("inputs/##.txt"); Part2(lines);
Part1(lines); Logger.Log("");
Part2(lines); }
Logger.Log("");
}
private static void Part1(IEnumerable<string> lines) private static void Part1(IEnumerable<string> lines)
{ {
using var t = new Timer(); using var t = new Timer();
Logger.Log($"part1: "); Logger.Log($"part1: ");
} }
private static void Part2(IEnumerable<string> lines) private static void Part2(IEnumerable<string> lines)
{ {
using var t = new Timer(); using var t = new Timer();
Logger.Log($"part2: "); Logger.Log($"part2: ");
}
} }
} }