I have multiple classes in a namespace implementing certain interface, and I want to make a list of all classes, that match the same interface.
Is there a way to reach that using System.Reflection
?
public interface A
{}
public class AB : A
{}
public class AC : A
{}
public class AD : A
{}
List<A> classList = { AB, AC, AD};
Thanks.