public void AssociateComInterface(object o, object i) { ComObject co = ComObject.ObjectToComObject(o); Type t = Converter.ConvertToType(i); if (co != null) { co.AddInterface(t); } }