帮我看看这个错误在哪???
namespace Wrox.ProCSharp.ParameterTestSample{
class Program
{
public static int Main()
{
int i = 0;
int[] ints = { 0, 1, 2, 4, 8 };
Console.WriteLine("i="+i);
Console.WriteLine("ints[0]="+ints[0]);
Console.WriteLine("Calling SomeFunction...");
SomeFunction(ints,i);
Console.WriteLine("i=" + i);
Console.WriteLine("ints[0]="+ints[0]);
return 0;
}
class ParameterTest
{
static void SomeFunction(int[] ints, int i)
{
ints[0] = 100;
i = 100;
}
}
}
}
SomeFunction方法为什么不能用?