Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String to reference static object
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01439141
Message ID:
01439151
Vues:
40
Doh! Sorry - this obviously wasn't taken from working code. Should be:
List<RoutedUICommands> SupportedCommands = new List<RoutedUICommands>();
>Silly question, completely unrelated to your question. What does this line do?
>
>>
List<RoutedUICommands>() SupportedCommands;
>
>
>>SupportedCommands.Add(LLCommands.LockDown);So far, so good. But how can I achieve the add given only a string (e.g "LLCommands.LockDown") ?
>
>Reflection via GetType/InvokeMember?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform