Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fox-like Macro Substitution?
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Fox-like Macro Substitution?
Divers
Thread ID:
00789037
Message ID:
00789037
Vues:
79
Is there a way to do a Foxpro-like macro substitution in C# or VB.net?

I want to be able to read a SQL table that lists class names, and instantiate an object from a class name value - something like (using the Foxpro '&' macro substitution character) :

readvar = (results of a some SQL query I run);
Object o = new &readvar();

- or -

&readvar o = new &readvar();

The classes are included in the references of the solution. I just want to be able to instantiate the objects based on the form interaction. I realize I could just code the whole process - use a long switch, etc... I just wondered if I could it could be done another way.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform