My program is, said shortly, comparing algorithms. At the moment I have to change code whenever i add or remove certain algorithms. I am using C#.
My idea was to just check for classes in a directory and then for every object in that directory instantiate it in a list (or dictionary but i don't really understand those yet, but for now lets say list). That way I don't have to add every algorithm manually and can just add or remove classes by adding or removing them from said folder.
So whenever I compile my program it goes through src/model/algorithms, takes every file which is a c# class and then adds an instance of that class into a list.
Is this possible, and how would I do this?