Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
QuestionMessage Closed Pin
8-Jan-14 20:14
Member 105127088-Jan-14 20:14 
AnswerRe: vochancer program PinPopular
Mycroft Holmes8-Jan-14 20:24
professionalMycroft Holmes8-Jan-14 20:24 
AnswerRe: vochancer program PinPopular
OriginalGriff8-Jan-14 21:16
mveOriginalGriff8-Jan-14 21:16 
GeneralRe: vochancer program Pin
Rahul VB31-Jan-14 6:59
professionalRahul VB31-Jan-14 6:59 
QuestionIf else statemant Pin
manoj s sherje8-Jan-14 19:00
manoj s sherje8-Jan-14 19:00 
AnswerRe: If else statemant Pin
Wayne Gaylard8-Jan-14 19:20
professionalWayne Gaylard8-Jan-14 19:20 
AnswerRe: If else statemant Pin
Bernhard Hiller8-Jan-14 20:29
Bernhard Hiller8-Jan-14 20:29 
AnswerRe: If else statemant Pin
BillWoodruff8-Jan-14 20:35
professionalBillWoodruff8-Jan-14 20:35 
Without understanding the logic of your application ... and why you need so many if-else statements ... without seeing your code ... it's hard to try and help you.

Depending on the context there may be a way to optimize the logic. Whether your particular bunch of if/else statements reduce the performance of your application also depends on the complexity of what is evaluated (and the "cost" of that evaluation) in each if/else clause.

In general, if I see fifty if/else statements, I think code needs re-organizing, re-factoring; but, there's no way to tell if that's true for your code with such limited information.
“There are obvious things, and there are many obvious things no one tried, because no one needed to try them.” Sergey Alexandrovich Kryukov, January 1, 2014

GeneralRe: If else statemant Pin
manoj s sherje8-Jan-14 22:03
manoj s sherje8-Jan-14 22:03 
GeneralRe: If else statemant Pin
OriginalGriff8-Jan-14 22:12
mveOriginalGriff8-Jan-14 22:12 
GeneralRe: If else statemant Pin
V.8-Jan-14 23:50
professionalV.8-Jan-14 23:50 
GeneralRe: If else statemant Pin
manoj s sherje13-Jan-14 18:10
manoj s sherje13-Jan-14 18:10 
AnswerRe: If else statemant Pin
CPallini8-Jan-14 21:10
mveCPallini8-Jan-14 21:10 
AnswerRe: If else statemant Pin
Rahul VB31-Jan-14 7:06
professionalRahul VB31-Jan-14 7:06 
QuestionSprite Animation and Movement in XNA Pin
incxx8-Jan-14 11:04
incxx8-Jan-14 11:04 
AnswerRe: Sprite Animation and Movement in XNA Pin
Bernhard Hiller8-Jan-14 20:34
Bernhard Hiller8-Jan-14 20:34 
GeneralRe: Sprite Animation and Movement in XNA Pin
incxx10-Jan-14 5:55
incxx10-Jan-14 5:55 
QuestionRFID read and write on sql server using c# Pin
sandsip7-Jan-14 20:50
sandsip7-Jan-14 20:50 
AnswerRe: RFID read and write on sql server using c# Pin
Peter Leow7-Jan-14 21:05
professionalPeter Leow7-Jan-14 21:05 
AnswerRe: RFID read and write on sql server using c# Pin
Eddy Vluggen7-Jan-14 22:32
professionalEddy Vluggen7-Jan-14 22:32 
AnswerRe: RFID read and write on sql server using c# Pin
Marco Bertschi7-Jan-14 23:06
protectorMarco Bertschi7-Jan-14 23:06 
GeneralRe: RFID read and write on sql server using c# Pin
Eddy Vluggen8-Jan-14 0:32
professionalEddy Vluggen8-Jan-14 0:32 
GeneralRe: RFID read and write on sql server using c# Pin
Marco Bertschi8-Jan-14 1:55
protectorMarco Bertschi8-Jan-14 1:55 
AnswerRe: RFID read and write on sql server using c# Pin
David Knechtges8-Jan-14 3:24
David Knechtges8-Jan-14 3:24 
AnswerRe: RFID read and write on sql server using c# Pin
Bernhard Hiller8-Jan-14 20:38
Bernhard Hiller8-Jan-14 20:38 

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.