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

C#

 
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 
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 
OK - I was trying to put in a simple example for the ternary operator. I'm one of the haters of myBool ..., but it was such a trivial example that it didn't seem an issue here - oh well.

Luc Pattyn wrote:
and IMO the other one does not compile, I expect ?? needs references, but your example
starts with int


Errm. It will compile - the ?? tells the compiler to fall through from the first value (if it's null) to the second one. Here's an example:
int? myValue = 2;
int itemVal = myValue ?? 10;
The force is still strong with this one youngling.


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

My blog | My articles



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 
GeneralRe: cut string if it is to long for a field Pin
Spacix One21-Apr-08 9:41
Spacix One21-Apr-08 9:41 
GeneralRe: cut string if it is to long for a field Pin
stephan_00721-Apr-08 9:47
stephan_00721-Apr-08 9:47 
Generalassembly in C code with a not so young compiler! Pin
turetschek21-Apr-08 8:22
turetschek21-Apr-08 8:22 
Generalwrong forum Pin
Luc Pattyn21-Apr-08 8:34
sitebuilderLuc Pattyn21-Apr-08 8:34 

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.