i'm following the example in a book and i have these variables defined
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
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