I have an interface with types of T objects, for example:
public interface IService<T>
I have a bunch of these interfaces with all the different types of T. How can I add these interfaces to a list of some kind, iterate over the list and call the general method used by the interface. Any ideas? Is there an alternative approach?
If I add it to the list, I just don't see a way to type T correctly.
source share