SquareIntPointer(&myInt);
Console.WriteLine("myInt: {0}", myInt);
}
int myInt2 = 5;
SquareIntPointer(&myInt2);
Console.WriteLine("myInt: {0}", myInt2);
If you would rather not force the caller to wrap the invocation within an unsafe context, you
C H A P T E R 1 2
I N D E X E R S, O P E R ATO R S, A N D P O I N T E R S
8849CH12.qxd 9/26/07 11:31 AM Page 406
{