Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF In C#?
Message
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01455229
Message ID:
01455243
Views:
68
>>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform