what is the this keyword
public void CopyTo(Cards targetCards)
{
for (int index = 0; index < this.Count; index++)
{
targetCards[index] = this[index];
}
}
The code above is called via objectName.CopyTo(cards)
cards is an collection....
what is the this refering to... is it... objectName.count, where objecctName is a collection.
thanks Larry.....
|