Get list of all Classes using Interface.
Is there a way i can get a list of all the classes using this interface?
Here is a class using it:
Also is there a way i can create a instance of every class using IConsoleCommand?
8 Replies
a list of all classes (types) implementing this interface, or a list of all instances of classes implementing this interface?
implementing
yeah that didn't answer the question
"a list of all classes (types) implementing this interface"
and you want those of your own project?
yes
sorry to disappoint, but you should really just do
typeof(TheClass)
for each class that implements it
that'll be heaps cleaner and fasteright