Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF In C#?
Message
From
17/03/2010 18:17:40
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01455229
Message ID:
01455245
Views:
70
>>>Any way to do this in C# like VFP's IIF()?
>>>
>>>
>>>if (Checked)
>>>{
>>>    _CheckItemsCount++;
>>>}
>>>else
>>>{
>>>    _CheckItemsCount--;
>>>}
>>>
>>
>>
_CheckedItemsCount+=    (Checked) ? 1:-1;
>
>IMHO, this is harder to read than the original.

Probably because you're not used to reading it :-}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform