Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the Generic Factory
Message
De
30/04/2007 15:53:20
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Using the Generic Factory
Divers
Thread ID:
01221251
Message ID:
01221251
Vues:
79
Hi all,

I need to factory drive classes instantiation in my application. There is a application factory, but since it is derived from an abstract class, I can only use it for overriding methods from MM. I also see the documentation talks about a generic factory. The documentation shows how to set up the classes table for it, but that is where it stops.

Has anybody been using the generic factory?

It appears I can just do this:
mmAppBase.GenericFactory.CreateObject("RfidReader");
Assuming there is a record in the classes table for this, it should work. Am I correct?
Thanks
Tim
Timothy Bryan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform