C# equivalent of Java's List<? extends MyFancyClass>
问题 I don't believe I saw this anywhere (I'm not sure how to word the question really so that may be why) so if it's already been answered I apologise. I'm currently writing an application that has an event API that third parties can hook into, below is the code I'm using to fire the events. // Events.cs from the API project public interface IEventListener { void Handle(IEvent @event); } public abstract class EventManager { public abstract void Register(PluginBase plugin, IEventListener listener)