Click here to Skip to main content
16,014,568 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET Collections Pin
James T. Johnson10-Mar-02 14:21
James T. Johnson10-Mar-02 14:21 
QuestionDHTML control in windows.forms? Pin
9-Mar-02 14:59
suss9-Mar-02 14:59 
AnswerRe: DHTML control in windows.forms? Pin
James T. Johnson9-Mar-02 20:28
James T. Johnson9-Mar-02 20:28 
GeneralRe: DHTML control in windows.forms? Pin
13-Mar-02 2:04
suss13-Mar-02 2:04 
Questionwhen will the JIT run? Pin
9-Mar-02 0:18
suss9-Mar-02 0:18 
AnswerRe: when will the JIT run? Pin
James T. Johnson9-Mar-02 13:24
James T. Johnson9-Mar-02 13:24 
GeneralRe: when will the JIT run? Pin
9-Mar-02 15:02
suss9-Mar-02 15:02 
GeneralC# properties Pin
8-Mar-02 12:27
suss8-Mar-02 12:27 
Hi,

If we use Properties in our Class we would need one "local" variable to actually hold the value and one to actually be accessed from the outside...

private string name; // local
public string Name // access outside
{
 get
 {
  return name;
 }
 set
 {
  name = value;
 }
}

So basically my question is... are there TWO variables or only ONE... Is the public one just for asthetic reasons? If there are two it would be wasting space everytime we use a Property wouldn't it?

Also the "value" parameter - is that always assumed in Properties, cause I don't see any explicit mention of it anywhere?

Thanks.

Mohnish
GeneralRe: C# properties Pin
Anand Amirineni8-Mar-02 13:22
Anand Amirineni8-Mar-02 13:22 
GeneralRe: C# properties Pin
Sito Dekker9-Mar-02 0:34
Sito Dekker9-Mar-02 0:34 
GeneralFTP Upload and Download Pin
BLaZiNiX8-Mar-02 8:57
BLaZiNiX8-Mar-02 8:57 
GeneralRe: FTP Upload and Download Pin
Schnemar9-Mar-02 1:32
Schnemar9-Mar-02 1:32 
GeneralIntercept up and down arrow keys in datagrid Pin
kyledunn8-Mar-02 7:01
kyledunn8-Mar-02 7:01 
GeneralRe: Intercept up and down arrow keys in datagrid Pin
James T. Johnson9-Mar-02 13:28
James T. Johnson9-Mar-02 13:28 
GeneralRe: Intercept up and down arrow keys in datagrid Pin
9-Mar-02 15:37
suss9-Mar-02 15:37 
GeneralRe: Intercept up and down arrow keys in datagrid Pin
James T. Johnson9-Mar-02 21:06
James T. Johnson9-Mar-02 21:06 
GeneralRe: Intercept up and down arrow keys in datagrid Pin
kyledunn10-Mar-02 9:44
kyledunn10-Mar-02 9:44 
GeneralRe: Intercept up and down arrow keys in datagrid Pin
James T. Johnson10-Mar-02 10:05
James T. Johnson10-Mar-02 10:05 
Generaltextbox and button Pin
Mazdak8-Mar-02 3:44
Mazdak8-Mar-02 3:44 
GeneralRe: textbox and button Pin
Schnemar8-Mar-02 4:07
Schnemar8-Mar-02 4:07 
GeneralRe: textbox and button Pin
Mazdak8-Mar-02 4:30
Mazdak8-Mar-02 4:30 
GeneralRe: textbox and button Pin
Mazdak8-Mar-02 8:00
Mazdak8-Mar-02 8:00 
GeneralRe: textbox and button Pin
Schnemar8-Mar-02 12:06
Schnemar8-Mar-02 12:06 
GeneralRe: textbox and button Pin
AndyG8-Mar-02 12:20
AndyG8-Mar-02 12:20 
GeneralRe: textbox and button Pin
Mazdak8-Mar-02 19:08
Mazdak8-Mar-02 19:08 

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.