Where you have put ?
in the the question should not be IDataReader
, but an instance of myClass
. You are passing in the object on which you want to invoke myMethod
.
The result from calling .Invoke()
will be an IDataReader
, but that is not something you are creating; it is created inside the method you are invoking.