i need to understand this wrox code
LOOk :
using System;
namespace Wrox.ProCSharp.ParameterTestSample
{
class ParameterTest
{
static void SomeFunction(int[] ints, int i)
{
ints[0] = 100;
i = 100;
}
public static int Main()
{
int i = 0;
int[] ints = { 0, 1, 2, 4, 8 };
// Display the original values
Console.WriteLine(âi = â + i);
Console.WriteLine(âints[0] = â + ints[0]);
Console.WriteLine(âCalling SomeFunction...â);
// After this method returns, ints will be changed,
// but i will not
SomeFunction(ints, i);
Console.WriteLine(âi = â + i);Console.WriteLine(âints[0] = â + ints[0]);
return 0;
}
}
}
i need to understand the bold
|