Click here to Skip to main content
16,004,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Starting Robocopy From A Service Pin
rich_wenger30-Jan-09 3:47
rich_wenger30-Jan-09 3:47 
GeneralRe: Starting Robocopy From A Service Pin
musefan30-Jan-09 3:54
musefan30-Jan-09 3:54 
AnswerRe: Starting Robocopy From A Service Pin
Dave Kreskowiak30-Jan-09 6:08
mveDave Kreskowiak30-Jan-09 6:08 
Questiona ? b : c? Pin
bfis10813730-Jan-09 2:24
bfis10813730-Jan-09 2:24 
AnswerRe: a ? b : c? Pin
musefan30-Jan-09 2:27
musefan30-Jan-09 2:27 
AnswerRe: a ? b : c? Pin
Le centriste30-Jan-09 2:33
Le centriste30-Jan-09 2:33 
GeneralRe: a ? b : c? Pin
harold aptroot30-Jan-09 2:36
harold aptroot30-Jan-09 2:36 
AnswerRe: a ? b : c? PinPopular
Pete O'Hanlon30-Jan-09 2:35
mvePete O'Hanlon30-Jan-09 2:35 
It's known as a ternary operator. Basically, this is an operator that reads like this: "If the condition is true then use the value immediately after the question mark, otherwise use the value after the colon". Another operator you may sometimes see is the ?? operator. This is known as the coalescing null operator, and is used in statements like this:
MyClass a = value1 ?? value2 ?? new MyClass();
This reads like this "MyClass a is assigned value1, unless value1 is null in which case, it will use value2, unless value2 is null in which cass it uses new MyClass();" This is an efficient way to assign a default value if a null value is encountered.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



AnswerRe: a ? b : c? Pin
EliottA30-Jan-09 3:13
EliottA30-Jan-09 3:13 
AnswerRe: a ? b : c? Pin
#realJSOP30-Jan-09 3:28
professional#realJSOP30-Jan-09 3:28 
GeneralRe: a ? b : c? Pin
PIEBALDconsult30-Jan-09 7:04
mvePIEBALDconsult30-Jan-09 7:04 
AnswerRe: a ? b : c? Pin
Najmal31-Jan-09 4:38
Najmal31-Jan-09 4:38 
QuestionRegister a ocx in system Pin
anishkannan30-Jan-09 2:13
anishkannan30-Jan-09 2:13 
AnswerRe: Register a ocx in system Pin
Dave Kreskowiak30-Jan-09 6:06
mveDave Kreskowiak30-Jan-09 6:06 
GeneralRe: Register a ocx in system Pin
Najmal31-Jan-09 4:41
Najmal31-Jan-09 4:41 
QuestionHow to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Thomas_Mathews30-Jan-09 2:04
Thomas_Mathews30-Jan-09 2:04 
AnswerRe: How to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Manas Bhardwaj30-Jan-09 2:10
professionalManas Bhardwaj30-Jan-09 2:10 
AnswerRe: How to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Najmal31-Jan-09 4:50
Najmal31-Jan-09 4:50 
AnswerRe: How to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Thomas_Mathews1-Feb-09 23:03
Thomas_Mathews1-Feb-09 23:03 
QuestionXor the hex values Pin
M. J. Jaya Chitra30-Jan-09 1:51
M. J. Jaya Chitra30-Jan-09 1:51 
AnswerRe: Xor the hex values Pin
musefan30-Jan-09 2:05
musefan30-Jan-09 2:05 
GeneralRe: Xor the hex values Pin
M. J. Jaya Chitra30-Jan-09 2:11
M. J. Jaya Chitra30-Jan-09 2:11 
GeneralRe: Xor the hex values Pin
musefan30-Jan-09 2:20
musefan30-Jan-09 2:20 
GeneralRe: Xor the hex values Pin
musefan30-Jan-09 2:19
musefan30-Jan-09 2:19 
GeneralRe: Xor the hex values Pin
M. J. Jaya Chitra30-Jan-09 18:07
M. J. Jaya Chitra30-Jan-09 18:07 

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.