Warcaith
Issue with generic interfaces (covariance/contravariance)
Hello!
Currently, I have these interfaces within my project:
However, I'm unable to create a command like this:
... which makes it impossible for me to create a command and options dynamically. I have probably a design issue within my interfaces, so please, if there's anything that should be changed, don't hesitate to make these changes. Thanks! 😁
(Downcasting to
ICommand<object>
gives me an System.InvalidCastException
)22 replies