How using Reflection invoke method with ref or out parameter?

How using Reflection invoke method with ref or out parameter?

Post by Alexander » Thu, 21 Feb 2008 01:18:20


How using Reflection invoke method with ref or out parameter?
Example:

public static int Method(ref int p1, out int p2)

http://www.yqcomputer.com/ - Audio tools for C# and VB.Net developers
 
 
 

How using Reflection invoke method with ref or out parameter?

Post by Jon Skeet » Thu, 21 Feb 2008 01:25:01


See http://www.yqcomputer.com/
which works.

Basically you just call the method, then get the values out of the
object[] you passed in.

--
Jon Skeet - < XXXX@XXXXX.COM >
http://www.yqcomputer.com/ ~skeet Blog: http://www.yqcomputer.com/
World class .NET training in the UK: http://www.yqcomputer.com/