Let\'s say you have two different C# classes A and B that while not deriving from the same base class do share some of the same names for methods.
A
B
Either you will have to use an Interface (or Base class) as shown by Zach and astander, or you will have to case the object before using:
public void make_connection(Object x) { ((A)x).connect() ; // Do some more stuff... x.disconnect() ; return ; }