Click here to Skip to main content
15,897,360 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating a method hierarchy within a class Pin
PIEBALDconsult7-Nov-09 11:14
mvePIEBALDconsult7-Nov-09 11:14 
GeneralRe: Creating a method hierarchy within a class Pin
Not Active7-Nov-09 11:42
mentorNot Active7-Nov-09 11:42 
AnswerRe: Creating a method hierarchy within a class Pin
Not Active7-Nov-09 10:38
mentorNot Active7-Nov-09 10:38 
GeneralRe: Creating a method hierarchy within a class Pin
MafiaMoe7-Nov-09 10:50
MafiaMoe7-Nov-09 10:50 
GeneralRe: Creating a method hierarchy within a class Pin
Dave Kreskowiak7-Nov-09 11:43
mveDave Kreskowiak7-Nov-09 11:43 
AnswerRe: Creating a method hierarchy within a class Pin
Luc Pattyn7-Nov-09 11:08
sitebuilderLuc Pattyn7-Nov-09 11:08 
QuestionComplex IF Statment Pin
Saksida Bojan7-Nov-09 9:33
Saksida Bojan7-Nov-09 9:33 
AnswerRe: Complex IF Statment Pin
Luc Pattyn7-Nov-09 9:36
sitebuilderLuc Pattyn7-Nov-09 9:36 
Saksida Bojan wrote:
is it possible to put everything in one If line?


Have you forgotten what you learned while reading your first C# book? you can build complex expressions, e.g. using the logical AND and OR operators.

However, the user of your class/method won't like it when your method gives a single exception saying "some parameter is wrong". You really should use one IF per parameter as a minimum.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


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 
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 

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.