Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the terminology?
Message
De
16/06/2010 09:01:23
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
16/06/2010 08:59:15
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01469189
Message ID:
01469190
Vues:
67
>Hi,
>
>my mind has gone blank this morning trying to remember the name of the coding structure that lets you define constants and let your code use them like a pick list.
>
>For example, I want to define a list like this:
>
>1 - Pending
>2 - In Force
>3 - Deferred
>4 - Matured
>and so on.
>
>Then when I refer to this structure while writing my code it is easy to see which number corresponds to which term.
>
>What I am looking for is an easy way to define the current status of an item and make it easy for this status to be translated to other languages. Is this the best way to achieve this?

Enumerations.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform