Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# switch Gripe
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01370558
Message ID:
01370627
Vues:
32
I usually create enums that I switch on, because code complete creates all the possible switch cases for me. Now with enums you can only assign "integer" types (byte, ushort, short,int, uint, etc.)

>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????
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform