Add project files.

This commit is contained in:
2022-11-28 22:54:49 -05:00
parent dd97a677bb
commit c0c9e45e49
20 changed files with 417 additions and 0 deletions

30
AOC Runner/AOCRunner.cs Normal file
View File

@@ -0,0 +1,30 @@
using AOC.Runner;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace AdventOfCode;
public class AOCRunner
{
public AOCRunner()
{
FindProblemClasses();
}
private void FindProblemClasses()
{
var types = Assembly.GetExecutingAssembly()?.DefinedTypes.Where(t => t.IsAssignableTo(typeof(IProblemBase)));
if (types == null)
return;
foreach (var type in types)
{
Console.WriteLine(type.Name);
}
}
}