Thread: this keyword
View Single Post
  #2 (permalink)  
Old December 18th, 2003, 04:33 AM
jacob jacob is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen, , Denmark.
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use the keyword, when you explicitly want to say that it is the instance in the object that you mean, like in...
Code:
private string variable;
public void someFunction(string variable)
{
    this.variable = variable;
}
(within a class).

Hope it helps.

Jacob.

Reply With Quote