> Sorry i'v made a mistake in the question..
> Inside the Change function iv written like
[quoted text clipped - 6 lines]
>
> Please note that..

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
> > it will change the value of _clientConnect, but not of the caller's
> > _clientConnect_F. That's not how pass by reference works - all it means
> > is that *for the duration of that member* (the constructor, in this
> > case) changes to the parameter will be visible to the caller.
Is there any other way to change the value of m_ClientCount by passing it to
a function like this...?.
>"Jon Skeet [C# MVP]" wrote:
> > Sorry i'v made a mistake in the question..
> > Inside the Change function iv written like
[quoted text clipped - 11 lines]
> is that *for the duration of that member* (the constructor, in this
> case) changes to the parameter will be visible to the caller.
Jon Skeet [C# MVP] - 12 Feb 2008 07:36 GMT
> > > it will change the value of _clientConnect, but not of the caller's
> > > _clientConnect_F. That's not how pass by reference works - all it means
[quoted text clipped - 3 lines]
> Is there any other way to change the value of m_ClientCount by passing it to
> a function like this...?.
No. Well, not without creating an extra class which basically wraps an
integer.
Frankly, I'd find that behaviour confusing.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk