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:
01455231
Vues:
95
>Any way to do this in C# like VFP's IIF()?
>
>
>if (Checked)
>{
>    _CheckItemsCount++;
>}
>else
>{
>    _CheckItemsCount--;
>}
>
There is conditional ? operator in C# (C++), but I think this syntax is easier to understand.

http://msdn.microsoft.com/en-us/library/ty67wk28.aspx
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform