myMethod.Invoke(?, new object[] { "", "" });
? has nothing with a return interface, but it is the actual object of the method that you are calling. If you know that this method returns a class that implements IDataReader , just write
IDataReader rd=myMethod.Invoke(yourInstance, new object[] { "", "" });.
source share