I need to create a generic IList where T would be a generic class with various interfaces.
For example ChannelFactory<IService1> or ChannelFactory<IService2> and etc ..
I need to create a generic IList where T would be a generic class
Share
If you want this you should change your design if necessary. Make all interfaces derive from the same interface, for example
IServiceBase. You can then use the following constraint on your generic class: