p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Visual C# 2005 (http://p2p.wrox.com/forumdisplay.php?f=222)
-   -   what is the this keyword (http://p2p.wrox.com/showthread.php?t=57541)

Larryz May 6th, 2007 06:42 PM

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.....



All times are GMT -4. The time now is 10:02 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.