Click here to Skip to main content
15,905,323 members
Home / Discussions / C#
   

C#

 
AnswerRe: Plz help me Pin
Not Active23-May-10 3:38
mentorNot Active23-May-10 3:38 
Generalgetting ip address of client on server side Pin
dia 201023-May-10 18:53
dia 201023-May-10 18:53 
QuestionHow to include in installer Access Database 2003.? Pin
joynil22-May-10 17:51
joynil22-May-10 17:51 
AnswerRe: How to include in installer Access Database 2003.? Pin
PIEBALDconsult23-May-10 7:08
mvePIEBALDconsult23-May-10 7:08 
QuestionWhats iS THE Problem Of MY code in Monitor class For Resolve of Race Condition Pin
shahramkeyboard22-May-10 11:26
shahramkeyboard22-May-10 11:26 
AnswerRe: Whats iS THE Problem Of MY code in Monitor class For Resolve of Race Condition Pin
Luc Pattyn22-May-10 11:49
sitebuilderLuc Pattyn22-May-10 11:49 
Questionuse of ? and : [Solved] Pin
William Winner22-May-10 11:22
William Winner22-May-10 11:22 
AnswerRe: use of ? and : Pin
Pete O'Hanlon22-May-10 11:27
mvePete O'Hanlon22-May-10 11:27 
This is known as the ternary operator, and you are right about what your assumption of the logic here is. Basically, it follows the pattern:
(some boolean test) ? (part that gets executed if true) : (part that gets executed if false). It's very easy to get carried away with this operator and produce some code that looks like this:
value < lowerBounds ? value > 0 ? Console.WriteLine("We have a problem") : Console.WriteLine("Value less than or equal to zero") : Console.WriteLine("The value is OK");
If you must use it, use it with care; at some point you may be responsible for trying to figure out what you were smoking when you wrote the code.

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

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: use of ? and : Pin
William Winner22-May-10 11:30
William Winner22-May-10 11:30 
GeneralRe: use of ? and : Pin
Pete O'Hanlon22-May-10 11:33
mvePete O'Hanlon22-May-10 11:33 
GeneralRe: use of ? and : Pin
#realJSOP23-May-10 2:00
professional#realJSOP23-May-10 2:00 
AnswerRe: use of ? and : [Solved] Pin
DaveyM6923-May-10 1:20
professionalDaveyM6923-May-10 1:20 
Questionhelp to translate label from dll on C# Pin
kozzzak22-May-10 11:14
kozzzak22-May-10 11:14 
AnswerRe: help to translate label from dll on C# [modified] Pin
Luc Pattyn22-May-10 11:43
sitebuilderLuc Pattyn22-May-10 11:43 
QuestionPeterson Algoritm For many Process Pin
shahramkeyboard22-May-10 10:34
shahramkeyboard22-May-10 10:34 
AnswerRe: Peterson Algoritm For many Process Pin
Pete O'Hanlon22-May-10 10:45
mvePete O'Hanlon22-May-10 10:45 
GeneralRe: Peterson Algoritm For many Process Pin
shahramkeyboard22-May-10 11:27
shahramkeyboard22-May-10 11:27 
GeneralRe: Peterson Algoritm For many Process Pin
Pete O'Hanlon22-May-10 11:33
mvePete O'Hanlon22-May-10 11:33 
QuestionSimulation Of TSL instruction For Resolve of Race Condition Pin
shahramkeyboard22-May-10 10:25
shahramkeyboard22-May-10 10:25 
AnswerRe: Simulation Of TSL instruction For Resolve of Race Condition Pin
Pete O'Hanlon22-May-10 10:44
mvePete O'Hanlon22-May-10 10:44 
GeneralRe: Simulation Of TSL instruction For Resolve of Race Condition Pin
shahramkeyboard22-May-10 11:28
shahramkeyboard22-May-10 11:28 
GeneralRe: Simulation Of TSL instruction For Resolve of Race Condition Pin
Pete O'Hanlon22-May-10 11:38
mvePete O'Hanlon22-May-10 11:38 
QuestionCan I store List<> in a SQL DB? Pin
Etienne_12322-May-10 8:58
Etienne_12322-May-10 8:58 
AnswerRe: Can I store List in a SQL DB? Pin
PIEBALDconsult22-May-10 9:23
mvePIEBALDconsult22-May-10 9:23 
GeneralRe: Can I store List in a SQL DB? Pin
Luc Pattyn22-May-10 9:39
sitebuilderLuc Pattyn22-May-10 9:39 

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.