Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# switch Gripe
Message
De
01/01/2009 21:20:32
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01370558
Message ID:
01370570
Vues:
24
>Why in the world must a switch statement need an integer???
>
>Other languages are much more flexible in their CASE structures, so why would MS restrict the evaluation of the switch to an int????


While C#'s isn't as flexible as VFP's, it's certainly not *that* limiting as to only require an int. You can use strings too. Post the code you're having problems with.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform