Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enums as Datasources
Message
 
À
26/07/2004 12:17:18
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00927961
Message ID:
00928406
Vues:
21
I don't get it. Like someone else noted, you can bind an enum to a datasource like this:
Array values = Enum.GetValues(typeof(Colours));
colourCombo.DataSource = values;
No need for reflection here.

>http://www.codeproject.com/csharp/EnumDataSource.asp
>
>What a brilliant idea. This is really a neat application of reflection...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform