Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
Questionhow can TcpClient detect other side closed the connection? Pin
zecodela8-Oct-03 15:50
zecodela8-Oct-03 15:50 
QuestionAny tips for designing and implementing session file formats with C# and XML? Pin
Arun Bhalla8-Oct-03 13:45
Arun Bhalla8-Oct-03 13:45 
AnswerRe: Any tips for designing and implementing session file formats with C# and XML? Pin
Arun Bhalla8-Oct-03 19:36
Arun Bhalla8-Oct-03 19:36 
GeneralAlternative to databinding Pin
coge8-Oct-03 13:07
coge8-Oct-03 13:07 
GeneralRe: Alternative to databinding Pin
Alex Korchemniy9-Oct-03 4:34
Alex Korchemniy9-Oct-03 4:34 
QuestionWhat exactly is the get and set used for?? Pin
IrishSonic8-Oct-03 12:39
IrishSonic8-Oct-03 12:39 
AnswerRe: What exactly is the get and set used for?? Pin
Guillermo Rivero8-Oct-03 12:49
Guillermo Rivero8-Oct-03 12:49 
AnswerRe: What exactly is the get and set used for?? Pin
Daniel M. Edwards8-Oct-03 14:02
Daniel M. Edwards8-Oct-03 14:02 
The quick and easy is as follows. If you want to control assignment of values to an object you use a private/public variable system. The object accesses the data via the private variable and the public variable is how other objects interact with the object.

Example:

private string username = "";
public string Username
{
  get
  {
    return username;
  }
  set
  {
    if !(socket.Connected) username = value;
  }
}

This only allows another object to change the username of the object when "socket.Connected" is false. If you didn't use public/private with get/set you would not be able to control the value assignment and other objects would always be able to change the value and set it to whatever they want.
GeneralPageScale Pin
Gary Kirkham8-Oct-03 12:39
Gary Kirkham8-Oct-03 12:39 
QuestionHow to tell if a DOS process is waiting for input Pin
Wjousts8-Oct-03 10:42
Wjousts8-Oct-03 10:42 
AnswerRe: How to tell if a DOS process is waiting for input Pin
Blake Coverett8-Oct-03 16:00
Blake Coverett8-Oct-03 16:00 
GeneralRe: How to tell if a DOS process is waiting for input Pin
Wjousts8-Oct-03 16:14
Wjousts8-Oct-03 16:14 
GeneralRe: How to tell if a DOS process is waiting for input Pin
Blake Coverett8-Oct-03 16:18
Blake Coverett8-Oct-03 16:18 
GeneralRe: How to tell if a DOS process is waiting for input Pin
Wjousts9-Oct-03 4:24
Wjousts9-Oct-03 4:24 
GeneralCommunicating with COM object Pin
mahvk8-Oct-03 8:56
mahvk8-Oct-03 8:56 
GeneralRe: Communicating with COM object Pin
Heath Stewart8-Oct-03 10:25
protectorHeath Stewart8-Oct-03 10:25 
GeneralRe: Communicating with COM object Pin
mahvk8-Oct-03 10:33
mahvk8-Oct-03 10:33 
GeneralRe: Communicating with COM object Pin
Stephane Rodriguez.8-Oct-03 11:09
Stephane Rodriguez.8-Oct-03 11:09 
Generalextend an array like int[] Pin
yyf8-Oct-03 8:16
yyf8-Oct-03 8:16 
GeneralRe: extend an array like int[] Pin
Daniel M. Edwards8-Oct-03 8:48
Daniel M. Edwards8-Oct-03 8:48 
GeneralRe: extend an array like int[] Pin
jparsons8-Oct-03 12:09
jparsons8-Oct-03 12:09 
GeneralI'm C# newbie, how do I add a website to my application using Microsft Web Browser control? Please tell me step by step Pin
CSharp13148-Oct-03 7:54
CSharp13148-Oct-03 7:54 
GeneralRe: I'm C# newbie, how do I add a website to my application using Microsft Web Browser control? Please tell me step by step Pin
JJF0078-Oct-03 10:32
JJF0078-Oct-03 10:32 
GeneralRe: I'm C# newbie, how do I add a website to my application using Microsft Web Browser control? Please tell me step by step Pin
CSharp13148-Oct-03 17:51
CSharp13148-Oct-03 17:51 
GeneralRe: I'm C# newbie, how do I add a website to my application using Microsft Web Browser control? Please tell me step by step Pin
Daniel M. Edwards8-Oct-03 18:25
Daniel M. Edwards8-Oct-03 18:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.