why internal

bpayne111

Well-known member
Joined
Feb 28, 2003
Messages
326
Location
BFE
im following the example in a book and i have these variables defined
C#:
public class User
{
internal Socket _connection; //why is this internal
private Thread _readThread;
private NetworkStream _socketStream;
private BinaryWriter _writer;
private BinaryReader _reader;
}

my question is why is _connection internal instead of private?
i do not notice any other parts of my application using _connection so it would seem private is ok. Does the threading have something to do with this?

thanks
brandon
 
yes derek i think you are right. I took the concept provided and added my oop knowledge to it to create a Server component and now it all made sense.
Thanks
brandon
 
Back
Top