Re: shared int reference?
From: Michael Bray (mbrayXXnoSPAMpleaseXX_at_SkPiAlMl.ctiusa.com)
Date: 04/16/04
- Next message: Scatropolis: "Re: ListBox question anyone can answer"
- Previous message: Andreas Håkansson: "Re: Detecting socket disconnection (Async?)"
- In reply to: Alex Leduc: "Re: shared int reference?"
- Next in thread: Bruno Jouhier [MVP]: "Re: shared int reference?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Scatropolis: "Re: ListBox question anyone can answer"
- Previous message: Andreas Håkansson: "Re: Detecting socket disconnection (Async?)"
- In reply to: Alex Leduc: "Re: shared int reference?"
- Next in thread: Bruno Jouhier [MVP]: "Re: shared int reference?"
- Messages sorted by: [ date ] [ thread ]