I'm having a heck of an issue with the following: I have a generic class, with a constraint, that derives from a non-generic interface:
public abstract class DrilldownBase<W> where W : class, IDrilldown
This code is not correct through, because it thinks IDrilldown is a constraint, when its NOT. What I want is for the class DrilldownBase to inherit from IDrilldown. What am I missing?
Thanks.
Don't make it part of the constraint then.
The constraint should come after the inheritance declaration:
public abstract class DrilldownBase<W> : IDrilldown where W : class,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With