Re: shared int reference?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Michael Bray (mbrayXXnoSPAMpleaseXX_at_SkPiAlMl.ctiusa.com)
Date: 04/16/04


Date: Fri, 16 Apr 2004 13:46:20 -0700

Alex Leduc <leducale@netscape.net> wrote in news:eY26Gj#IEHA.3208
@TK2MSFTNGP10.phx.gbl:

> The problem is that the assignment operator copies the value of N into n
>
> public ClassA(ref int N)
> {
> n = N;
> }
>

Yeah sorry I didn't understand your original question. You can't really
share something between multiple objects (unless its the same TYPE of
object, in which case you can use a static variable.)

-mdb