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

C#

 
AnswerRe: Complex IF Statment Pin
Luc Pattyn7-Nov-09 9:36
sitebuilderLuc Pattyn7-Nov-09 9:36 
GeneralRe: Complex IF Statment Pin
Christian Graus7-Nov-09 9:37
protectorChristian Graus7-Nov-09 9:37 
GeneralRe: Complex IF Statment Pin
Luc Pattyn7-Nov-09 9:40
sitebuilderLuc Pattyn7-Nov-09 9:40 
GeneralRe: Complex IF Statment Pin
Saksida Bojan7-Nov-09 9:48
Saksida Bojan7-Nov-09 9:48 
GeneralRe: Complex IF Statment Pin
Luc Pattyn7-Nov-09 10:00
sitebuilderLuc Pattyn7-Nov-09 10:00 
GeneralRe: Complex IF Statment Pin
PIEBALDconsult7-Nov-09 10:16
mvePIEBALDconsult7-Nov-09 10:16 
GeneralRe: Complex IF Statment Pin
Christian Graus7-Nov-09 10:18
protectorChristian Graus7-Nov-09 10:18 
AnswerRe: Complex IF Statment Pin
Christian Graus7-Nov-09 9:38
protectorChristian Graus7-Nov-09 9:38 
Saksida Bojan wrote:
I don't like too many if statemnts, is it possible to put everything in one If line?


Why don't you ? Let me explain something to you. Writing code that a computer can understand, is easy. One of the worst things about outsourced code, is how illegible it is to humans. Do the poor person who is going to maintain this code in the future a favour, and think about writing legible code, rather than your personal preferences.

Also, how can you provide a detailed error message if all your if statement knows is that one of the parameters is invalid ?

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.

Question[Message Deleted] Pin
ninjatruck7-Nov-09 8:59
ninjatruck7-Nov-09 8:59 
AnswerRe: problem checking for 404 Pin
Christian Graus7-Nov-09 9:07
protectorChristian Graus7-Nov-09 9:07 
GeneralRe: problem checking for 404 Pin
ninjatruck7-Nov-09 9:23
ninjatruck7-Nov-09 9:23 
GeneralRe: problem checking for 404 Pin
Christian Graus7-Nov-09 9:36
protectorChristian Graus7-Nov-09 9:36 
GeneralRe: problem checking for 404 Pin
ninjatruck7-Nov-09 9:43
ninjatruck7-Nov-09 9:43 
GeneralRe: problem checking for 404 Pin
Christian Graus7-Nov-09 10:19
protectorChristian Graus7-Nov-09 10:19 
GeneralRe: problem checking for 404 Pin
Saksida Bojan7-Nov-09 9:40
Saksida Bojan7-Nov-09 9:40 
AnswerRe: problem checking for 404 Pin
Abhishek Sur7-Nov-09 9:19
professionalAbhishek Sur7-Nov-09 9:19 
AnswerRe: problem checking for 404 Pin
Luc Pattyn7-Nov-09 9:33
sitebuilderLuc Pattyn7-Nov-09 9:33 
GeneralRe: problem checking for 404 Pin
ninjatruck7-Nov-09 9:35
ninjatruck7-Nov-09 9:35 
GeneralRe: problem checking for 404 Pin
Christian Graus7-Nov-09 9:40
protectorChristian Graus7-Nov-09 9:40 
GeneralRe: problem checking for 404 Pin
Luc Pattyn7-Nov-09 9:44
sitebuilderLuc Pattyn7-Nov-09 9:44 
Questionprogram Pin
sujeet3082@yahoo.com7-Nov-09 8:19
sujeet3082@yahoo.com7-Nov-09 8:19 
AnswerRe: program Pin
Richard MacCutchan7-Nov-09 8:35
mveRichard MacCutchan7-Nov-09 8:35 
AnswerRe: program Pin
Christian Graus7-Nov-09 9:05
protectorChristian Graus7-Nov-09 9:05 
AnswerRe: program Pin
Luc Pattyn7-Nov-09 9:37
sitebuilderLuc Pattyn7-Nov-09 9:37 
Questioncartoon yourself?????????????????????????? Pin
rizwana rashid7-Nov-09 8:09
rizwana rashid7-Nov-09 8:09 

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.