Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent to eval()
Message
De
30/03/2010 03:50:09
 
 
À
29/03/2010 17:37:13
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01457734
Message ID:
01458025
Vues:
44
>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.....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform