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:
@ -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: ");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user