Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Generic Class Factory?
Message
De
19/08/2008 23:08:24
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Why Generic Class Factory?
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01340285
Message ID:
01340285
Vues:
54
Hi,
I have written ClassFactory class using Assembly.LoadFrom() approach. I found that is some article talk about Generic ClassFactory. As I see we always pass the desired type to ClassFactory in order to get its instance. Then what is the benefit of doing so instead of using new statement? Beside, passing type to it seem like tight coupled. What are the pros?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Répondre
Fil
Voir

Click here to load this message in the networking platform