Say I have 2 interfaces, which follow the same sequence of function calls.
The 1st interface has an extra method on it, the 2nd has no method so should not be called. How do I test whether the method is supported and then call it?
Is it best to cast the object to the interface, and if not null then call the method or is there a better way?
The best practice i know is: