zhe
12 years agoOccasional Contributor
ref and out parameters in C#
What is the correct way of using a method with ref parameters? Suppose we have a method like this in my assembly: public static int DoSomething(int Param1, ref MyClass param...
- 12 years ago
Hi Zhe,
I suppose you are using JScript in your test, right? It has a restriction - JScript doesn't support methods with out-parameters. You can try using this script extension to overcome the issue, or use another scripting language (VBScript or DelphiScript).