-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
40 lines (36 loc) · 1.41 KB
/
Program.cs
File metadata and controls
40 lines (36 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ############################################################################
// # Galen Lanphier #
// # https://github.com/lanphiergm/AdventOfCodeCS #
// # MIT License. See LICENSE file #
// ############################################################################
using System;
using System.Reflection;
namespace AdventOfCode
{
/// <summary>
/// Application startup object
/// </summary>
static class Program
{
/// <summary>
/// The application entry point
/// </summary>
/// <param name="args">The command line arguments</param>
/// <remarks>
/// This method is used for profiling individual tests that are not performing well.
/// </remarks>
static void Main(string[] args)
{
// Set the puzzle and part to run here
var instance = new Puzzles.Year2020.Day22CrabCombat();
PuzzlePart part = instance.Part2_PuzzleInput;
// Log what is being run and invoke it
Console.WriteLine($"Executing {instance.GetType().FullName} {part.GetMethodInfo().Name}");
part.Invoke();
}
/// <summary>
/// Defines the part of a puzzle that is being executed
/// </summary>
private delegate void PuzzlePart();
}
}