G
Guest
I need to use reflection to dynamically call a method which takes a ref
parameter. How do I create the appropriate object to pass as the ref
parameter - which presumably needs to be a reference to (address of ?) the
actual object.
For example, if I pass a simple value type, it would provide a copy to the
method which will not have the desired effect of changing the source value
itself.
Thanks for your help.
Robert.
parameter. How do I create the appropriate object to pass as the ref
parameter - which presumably needs to be a reference to (address of ?) the
actual object.
For example, if I pass a simple value type, it would provide a copy to the
method which will not have the desired effect of changing the source value
itself.
Thanks for your help.
Robert.