Click here to Skip to main content
15,896,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Conditional comparaison Pin
Spacix One21-Apr-08 13:41
Spacix One21-Apr-08 13:41 
GeneralRe: Conditional comparaison Pin
baranils21-Apr-08 19:35
baranils21-Apr-08 19:35 
GeneralRe: Conditional comparaison Pin
Spacix One22-Apr-08 2:43
Spacix One22-Apr-08 2:43 
GeneralRe: Conditional comparaison Pin
baranils22-Apr-08 2:51
baranils22-Apr-08 2:51 
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 
It depends whereabouts it is.

1. In a variable definition, e.g. int? myValue = null; The ? means that the int is nullable (i.e. it can be set to null)
2. In a ternary operator, e.g. bool myVal = (item > 2 ? true : false); This reads, if item is greater than 2, then set myVal to true (otherwise set it to false).
3. As part of something called the null coalescing operator, e.g. int myVal = someValue ?? 1; This means, if someValue is not null, then set myVal to this value otherwise fallback to set it as 1.


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

My blog | My articles



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

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.