Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
QuestionRe: foreach simple question Pin
JollyMansArt17-Sep-09 12:15
JollyMansArt17-Sep-09 12:15 
QuestionRe: foreach simple question Pin
JollyMansArt17-Sep-09 12:22
JollyMansArt17-Sep-09 12:22 
AnswerRe: foreach simple question Pin
PIEBALDconsult17-Sep-09 13:06
mvePIEBALDconsult17-Sep-09 13:06 
AnswerRe: foreach simple question Pin
Ian Shlasko17-Sep-09 12:21
Ian Shlasko17-Sep-09 12:21 
AnswerRe: foreach simple question Pin
Luc Pattyn17-Sep-09 12:21
sitebuilderLuc Pattyn17-Sep-09 12:21 
AnswerRe: foreach simple question Pin
Christian Graus17-Sep-09 10:28
protectorChristian Graus17-Sep-09 10:28 
AnswerRe: foreach simple question Pin
PIEBALDconsult17-Sep-09 10:32
mvePIEBALDconsult17-Sep-09 10:32 
GeneralRe: foreach simple question Pin
Christian Graus17-Sep-09 12:03
protectorChristian Graus17-Sep-09 12:03 
You know, we get our share of morons around here, but this guy seems to me to have asked a reasonable question, albeit one that is indeed well covered in any online example you might find.

PIEBALDconsult wrote:
In the second piece of bad code you present; use i+=2 to increment by two.


I believe his point is entirely that if you increment i inside a for loop, the loop also increments it, creating a jump of 2. That evaluation is correct.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

GeneralRe: foreach simple question Pin
PIEBALDconsult17-Sep-09 12:05
mvePIEBALDconsult17-Sep-09 12:05 
GeneralRe: foreach simple question Pin
Christian Graus17-Sep-09 12:09
protectorChristian Graus17-Sep-09 12:09 
GeneralRe: foreach simple question Pin
Ian Shlasko17-Sep-09 12:30
Ian Shlasko17-Sep-09 12:30 
GeneralRe: foreach simple question Pin
JollyMansArt17-Sep-09 12:36
JollyMansArt17-Sep-09 12:36 
GeneralRe: foreach simple question Pin
PIEBALDconsult17-Sep-09 13:35
mvePIEBALDconsult17-Sep-09 13:35 
GeneralRe: foreach simple question Pin
JollyMansArt17-Sep-09 12:09
JollyMansArt17-Sep-09 12:09 
AnswerRe: foreach simple question Pin
Not Active17-Sep-09 13:26
mentorNot Active17-Sep-09 13:26 
Questiongood books for XML With windows c# Pin
santosh_anu17-Sep-09 9:44
santosh_anu17-Sep-09 9:44 
AnswerRe: good books for XML With windows c# Pin
Christian Graus17-Sep-09 10:29
protectorChristian Graus17-Sep-09 10:29 
AnswerRe: good books for XML With windows c# Pin
PIEBALDconsult17-Sep-09 10:45
mvePIEBALDconsult17-Sep-09 10:45 
Questionhow to add more buttons,images and logos in messagebox in c#. Pin
Ramesh Reddy1111117-Sep-09 7:32
Ramesh Reddy1111117-Sep-09 7:32 
AnswerRe: how to add more buttons,images and logos in messagebox in c#. PinPopular
EliottA17-Sep-09 7:55
EliottA17-Sep-09 7:55 
GeneralRe: how to add more buttons,images and logos in messagebox in c#. Pin
Ian Shlasko17-Sep-09 8:12
Ian Shlasko17-Sep-09 8:12 
GeneralRe: how to add more buttons,images and logos in messagebox in c#. Pin
Luc Pattyn17-Sep-09 8:22
sitebuilderLuc Pattyn17-Sep-09 8:22 
JokeRe: how to add more buttons,images and logos in messagebox in c#. Pin
Manas Bhardwaj17-Sep-09 8:08
professionalManas Bhardwaj17-Sep-09 8:08 
AnswerRe: how to add more buttons,images and logos in messagebox in c#. Pin
Christian Graus17-Sep-09 10:30
protectorChristian Graus17-Sep-09 10:30 
Questiongeting problem to printpriview the datagrid content ---help me Pin
Ramesh Reddy1111117-Sep-09 7:29
Ramesh Reddy1111117-Sep-09 7:29 

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.