Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String to reference static object
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01439141
Message ID:
01439151
Views:
41
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform