Having a bit of a brain fail.
Suppose I have two classes subclassed off one other class. These two classes also inherit from an interface.
I want to pass an instance of one of these classes to a new window via a constructor and store it as a property for use by the window.
If I create a property with the type of the super I can’t store these classes , if I use the type of one of the classes I can’t store the other (obviously!!). If I use the interface I lose the subclassed properties.
Hope I’ve explained ok - I think there’s a design pattern I can use but for the life of me can’t remember which!
Any pointers out there?