Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Generic Class Factory?
Message
From
19/08/2008 23:08:24
 
 
To
All
General information
Forum:
ASP.NET
Category:
Class design
Title:
Why Generic Class Factory?
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01340285
Message ID:
01340285
Views:
53
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...
Reply
Map
View

Click here to load this message in the networking platform