public static void Main() { int i = 5; ParameterTest.fnValue(i); Console.WriteLine("After fnValue i = {0}", i); ParameterTest.fnOut(out i); Console.WriteLine("After fnOut i = {0}", i); ParameterTest.fnRef(ref i); Console.WriteLine("After fnRef i = {0}", i); Console.WriteLine("Sum(1, 2, 3) = {0}", ParameterTest.Sum(1, 2, 3)); }
public void setTestAll(ParameterTest testAll) { TestAll = testAll; }