c# alternative to '? extends class' (java)
Posted on 2011-10-21
I'm converting some java code to c# and am wondering if there is a direct alternative for java's '? extends MyClass' i.e. i have a class type that inherits from an abstract class that implements an interface, how do i pass an instance of the child class into a method that takes any class that extends my abstract class?
Currently i have the sig in c# taking an interface but this isn't accepting my class even though its parent implements the interface