Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
GeneralRe: Conditional comparaison Pin
Spacix One22-Apr-08 3:31
Spacix One22-Apr-08 3:31 
GeneralRe: Conditional comparaison Pin
Spacix One21-Apr-08 12:23
Spacix One21-Apr-08 12:23 
Generalbeginners question Pin
NewToAspDotNet21-Apr-08 9:23
NewToAspDotNet21-Apr-08 9:23 
GeneralRe: beginners question Pin
Pete O'Hanlon21-Apr-08 9:31
mvePete O'Hanlon21-Apr-08 9:31 
Generalwrong forum Pin
Luc Pattyn21-Apr-08 10:04
sitebuilderLuc Pattyn21-Apr-08 10:04 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:08
mvePete O'Hanlon21-Apr-08 10:08 
GeneralRe: wrong forum Pin
User 665821-Apr-08 10:13
User 665821-Apr-08 10:13 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:25
mvePete O'Hanlon21-Apr-08 10:25 
Greeeg wrote:
What Luc probably means is that bool myVal = (item > 2 ? true : false); can be simply expressed as bool myVal = item > 2, so the example for the ternary operator probably wasn't the best.


It was just a simple example. Judging by the level of the OP question, I figured this was about as much as he could handle. I rather suspect that Luc's objection has more to do with the fact that the ternary and coalescing operators actually lead to unclear code.


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: wrong forum [modified] Pin
Spacix One21-Apr-08 10:40
Spacix One21-Apr-08 10:40 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:45
mvePete O'Hanlon21-Apr-08 10:45 
GeneralRe: wrong forum Pin
Luc Pattyn21-Apr-08 10:34
sitebuilderLuc Pattyn21-Apr-08 10:34 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:42
mvePete O'Hanlon21-Apr-08 10:42 
GeneralRe: wrong forum Pin
Luc Pattyn21-Apr-08 11:07
sitebuilderLuc Pattyn21-Apr-08 11:07 
GeneralRe: wrong forum Pin
Spacix One21-Apr-08 11:09
Spacix One21-Apr-08 11:09 
GeneralRe: wrong forum Pin
Luc Pattyn21-Apr-08 12:06
sitebuilderLuc Pattyn21-Apr-08 12:06 
GeneralRe: wrong forum Pin
Spacix One21-Apr-08 12:14
Spacix One21-Apr-08 12:14 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 11:15
mvePete O'Hanlon21-Apr-08 11:15 
Generalsome contanimation Pin
Luc Pattyn21-Apr-08 12:02
sitebuilderLuc Pattyn21-Apr-08 12:02 
GeneralRe: beginners question Pin
carbon_golem21-Apr-08 9:32
carbon_golem21-Apr-08 9:32 
GeneralRe: beginners question Pin
Pete O'Hanlon21-Apr-08 9:34
mvePete O'Hanlon21-Apr-08 9:34 
GeneralRe: beginners question Pin
carbon_golem21-Apr-08 9:43
carbon_golem21-Apr-08 9:43 
GeneralRe: beginners question Pin
Spacix One21-Apr-08 9:50
Spacix One21-Apr-08 9:50 
GeneralRe: beginners question Pin
Guffa21-Apr-08 21:25
Guffa21-Apr-08 21:25 
Generalcut string if it is to long for a field Pin
stephan_00721-Apr-08 9:15
stephan_00721-Apr-08 9:15 
GeneralRe: cut string if it is to long for a field Pin
damianrda21-Apr-08 9:23
damianrda21-Apr-08 9:23 

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.