Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF In C#?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01455229
Message ID:
01455267
Vues:
66
>>Any way to do this in C# like VFP's IIF()?
>>
>>
>>if (Checked)
>>{
>>    _CheckItemsCount++;
>>}
>>else
>>{
>>    _CheckItemsCount--;
>>}
>>
>
>
_CheckedItemsCount+=    (Checked) ? 1:-1;
Never seen this before. Can you explain the syntax?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform