Can I set rules for the class inheriting my base class. eg. Person : BaseClass
, I want Person
to implement iSomeKindOfInterface
, if Person
does not implement the interface, it is not allowed to inherit from BaseClass
.
I know this is posibble in generic base classes where you can do the following
public BaseClass<T>
where T : iSomeKinfOfInterface