Add project files.
This commit is contained in:
30
AOC Runner/AOCRunner.cs
Normal file
30
AOC Runner/AOCRunner.cs
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user