diff --git a/AdventOfCode2025/Inputs/Input.cs b/AdventOfCode2025/Inputs/Input.cs index 0250124..18f7252 100644 --- a/AdventOfCode2025/Inputs/Input.cs +++ b/AdventOfCode2025/Inputs/Input.cs @@ -3,13 +3,6 @@ namespace AdventOfCode2025.Inputs; public sealed record Input(int Day, int PartNumber = 1) { private const string BasePath = "../../../Inputs/"; - public string ToPath() => BasePath + $"Day{Day}_{PartNumber}.txt"; -} - -public static class InputExtensions -{ - extension(Input input) - { - public IEnumerable Lines => File.ReadAllLines(input.ToPath()); - } + private string ToPath() => BasePath + $"Day{Day}_{PartNumber}.txt"; + public IEnumerable Lines => field ??= File.ReadAllLines(ToPath()); } \ No newline at end of file