Edit: Let us assume the classes actually do not share an interface! Major slip on my part…
For reasons unknown to me there are for example two WPF classes which both have the same method with the same signature:
So i have been wondering (for the heck of it) how i should construct a method (e.g. typechecking & exceptions) which ultimately calls the above mentioned method.
(I will be posting what i would be inclined to do but i am looking for what more experienced people would recommend.)
My approach: