Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 0:25
professional Xmen Real 17-Mar-09 0:25 
AnswerRe: how to get out from the outer for Pin
Eddy Vluggen17-Mar-09 0:27
professionalEddy Vluggen17-Mar-09 0:27 
AnswerRe: how to get out from the outer for Pin
Simon P Stevens17-Mar-09 0:29
Simon P Stevens17-Mar-09 0:29 
AnswerRe: how to get out from the outer for Pin
Eslam Afifi17-Mar-09 0:40
Eslam Afifi17-Mar-09 0:40 
AnswerRe: how to get out from the outer for PinPopular
Pete O'Hanlon17-Mar-09 0:53
mvePete O'Hanlon17-Mar-09 0:53 
GeneralRe: how to get out from the outer for Pin
Colin Angus Mackay17-Mar-09 0:58
Colin Angus Mackay17-Mar-09 0:58 
GeneralRe: how to get out from the outer for Pin
Simon P Stevens17-Mar-09 1:30
Simon P Stevens17-Mar-09 1:30 
GeneralRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 2:46
professional Xmen Real 17-Mar-09 2:46 
Pete O'Hanlon wrote:
I know that they are being lazy or have given no thought to what the proper use of the loop should be.

Well well well, first of all I'm not lazy... and by reading your answer, people will thing .Net Framework developer were fool because they made 'break'. Perhaps the programmers they use 'continue' are lazy too.
Now, take an example...you need to iterate an array until you got a value hmm... 9. Now how you gonna do

for (int a=0; a < arrayx.Length; a++)
{
if (arrayx[a] == 9)
break;
}


or

bool foundNine = false;
int index = 0;
while(!foundNine)
{
if (arrayx[index] == 9)
foundNine = true;
index++;
}


I'll always prefer the first one...I dunno about you, it may look you a work of lazy coder.



TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

-----------------------------------------------
128 bit encrypted signature, crack if you can

GeneralRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 2:57
mvePete O'Hanlon17-Mar-09 2:57 
GeneralRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 3:00
professional Xmen Real 17-Mar-09 3:00 
GeneralRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 3:29
mvePete O'Hanlon17-Mar-09 3:29 
GeneralRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 3:35
professional Xmen Real 17-Mar-09 3:35 
GeneralRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 3:42
mvePete O'Hanlon17-Mar-09 3:42 
GeneralRe: how to get out from the outer for Pin
Eddy Vluggen17-Mar-09 6:04
professionalEddy Vluggen17-Mar-09 6:04 
Questionhow can i change the sample rate and sample size of wave files Pin
ahmedhassan9617-Mar-09 0:12
ahmedhassan9617-Mar-09 0:12 
QuestionVS 2008 - Setup project: Change Link Icon in Program Menu Pin
dj_jeff17-Mar-09 0:10
dj_jeff17-Mar-09 0:10 
Questionhow to catch these events? Pin
abhiram_nayan17-Mar-09 0:01
abhiram_nayan17-Mar-09 0:01 
AnswerRe: how to catch these events? Pin
Eddy Vluggen17-Mar-09 0:50
professionalEddy Vluggen17-Mar-09 0:50 
GeneralRe: how to catch these events? Pin
abhiram_nayan17-Mar-09 1:02
abhiram_nayan17-Mar-09 1:02 
GeneralRe: how to catch these events? Pin
Eddy Vluggen17-Mar-09 1:41
professionalEddy Vluggen17-Mar-09 1:41 
QuestionWhat's name of this code ? Pin
Mohammad Dayyan16-Mar-09 23:28
Mohammad Dayyan16-Mar-09 23:28 
AnswerRe: What's name of this code ? Pin
DaveyM6916-Mar-09 23:30
professionalDaveyM6916-Mar-09 23:30 
Questionopenfiledialog Pin
abu anas alazuneh16-Mar-09 23:06
abu anas alazuneh16-Mar-09 23:06 
AnswerRe: openfiledialog Pin
SeMartens16-Mar-09 23:07
SeMartens16-Mar-09 23:07 
AnswerRe: openfiledialog Pin
Christian Graus16-Mar-09 23:08
protectorChristian Graus16-Mar-09 23:08 

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.