Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent to eval()
Message
From
30/03/2010 03:50:09
 
 
To
29/03/2010 17:37:13
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01457734
Message ID:
01458025
Views:
43
>In any .NET application where you are *only* accessing code *that you have written* would you use System.Reflection or System.CodeDom?
>
>That's a better question than you may think. ;-)
>
>For database work, I'd agree with Michel and use System.CodeDom wherever possible. That simple parser I mentioned earlier can convert VFP table-driven stuff to static C#. It's big, but it works.

If you're referring to Michel's post on this thread then I think he said the method *name* was stored in a table - so he wasn't compiling on the fly. But that implies that the required method already exists in a known object (and presumably all of the possilbe methods have the same parameters and return type) so you don't *need* to use reflection as the solution. Not saying that it is neccessarily a bad solution - just that there are alternatives.....
Previous
Reply
Map
View

Click here to load this message in the networking platform