I have defined a generic class MultiSlot<T>.
At some point I want to check that an object is of this type (i.e. of type MultiSlot), but not of a specific type T. What I want, basically, is all objects of MultiSlotl<T> to enter a certain if clause, regardless their specific T (given that they all belong to some subclass of T).
An indicative (but wrong!) syntax would be: if (obj is MultiSlot<>).
Is there a way to do that?