becoming rather nerdy with c#

An expression using the += assignment operator, such as
Copy Code 
x += y
is equivalent to
Copy Code 
x = x + y
ebooks,from wrox, are cool, you can cut and paste code from a pdf :)… also easier to carry around !
    //// the old way,find elements, loop
        //for (int i = 0; i < myArray.Length; i++)
        //    lc_text += myArray[i].ToString(); // +=  … arghhh but getting used to it now
        // the new way, use foreach, rather elegant really
        foreach (int val in myArray)
            lc_text += myArray[i].ToString(); // +=
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s