Click here to Skip to main content
15,888,341 members
Home / Discussions / C#
   

C#

 
GeneralUsing "this" Pin
kensai7-Apr-03 11:02
kensai7-Apr-03 11:02 
GeneralRe: Using "this" Pin
J. Dunlap7-Apr-03 11:13
J. Dunlap7-Apr-03 11:13 
GeneralRe: Using "this" Pin
David Stone7-Apr-03 11:30
sitebuilderDavid Stone7-Apr-03 11:30 
GeneralRe: Using "this" Pin
Nick Seng7-Apr-03 17:25
Nick Seng7-Apr-03 17:25 
GeneralRe: Using "this" Pin
J. Dunlap7-Apr-03 18:06
J. Dunlap7-Apr-03 18:06 
GeneralRe: Using "this" Pin
James T. Johnson7-Apr-03 11:18
James T. Johnson7-Apr-03 11:18 
GeneralRe: Using "this" Pin
kensai9-Apr-03 10:19
kensai9-Apr-03 10:19 
GeneralRe: Using "this" Pin
Leon van Wyk10-Apr-03 2:24
professionalLeon van Wyk10-Apr-03 2:24 
Short and Sweet: "this" refers to the class in which you are typing the word "this" in. It just specifies that you are working with THIS class and not any other class the you refernse to, just the one were you are currently coding in....


public class OtherClass
{
string MyVar = "OtherVar";

public OtherClass()
{
}
}

public class MyClass
{
string MyVar = "YourVar";

public MyClass()
{
string OUTCOME = this.MyVar //is anything in MyClass, nowhere else
}
}


the OUTCOME would be "YourVar";


Leon v Wyk
GeneralRemoving the XML heading line in C#. Pin
Segal7-Apr-03 7:20
Segal7-Apr-03 7:20 
GeneralRe: Removing the XML heading line in C#. Pin
Le centriste7-Apr-03 9:23
Le centriste7-Apr-03 9:23 
GeneralRe: Removing the XML heading line in C#. Pin
Heath Stewart7-Apr-03 12:35
protectorHeath Stewart7-Apr-03 12:35 
GeneralMaking an exception class Pin
S O S7-Apr-03 4:57
S O S7-Apr-03 4:57 
GeneralRe: Making an exception class Pin
Andy Smith7-Apr-03 6:30
Andy Smith7-Apr-03 6:30 
GeneralRe: Making an exception class Pin
S O S7-Apr-03 17:29
S O S7-Apr-03 17:29 
GeneralI have a problem with streaming XML Pin
zoltix7-Apr-03 3:01
zoltix7-Apr-03 3:01 
GeneralRe: I have a problem with streaming XML Pin
James T. Johnson7-Apr-03 7:15
James T. Johnson7-Apr-03 7:15 
GeneralRe: I have a problem with streaming XML Pin
zoltix7-Apr-03 9:12
zoltix7-Apr-03 9:12 
GeneralData Authorization Pin
Adam Turner7-Apr-03 0:38
Adam Turner7-Apr-03 0:38 
GeneralRe: Data Authorization Pin
Rocky Moore7-Apr-03 4:53
Rocky Moore7-Apr-03 4:53 
Generalabout to choose .NET vs Borland Pin
Konrad Rotuski7-Apr-03 0:32
Konrad Rotuski7-Apr-03 0:32 
GeneralRe: about to choose .NET vs Borland Pin
Rocky Moore7-Apr-03 5:18
Rocky Moore7-Apr-03 5:18 
GeneralRe: about to choose .NET vs Borland Pin
Konrad Rotuski7-Apr-03 6:03
Konrad Rotuski7-Apr-03 6:03 
GeneralRe: about to choose .NET vs Borland Pin
Rocky Moore8-Apr-03 5:26
Rocky Moore8-Apr-03 5:26 
Generalvirtual parameter Pin
Nick Seng6-Apr-03 22:25
Nick Seng6-Apr-03 22:25 
GeneralRe: virtual parameter Pin
S O S7-Apr-03 5:00
S O S7-Apr-03 5:00 

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.