Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventng direct creation of sub-class instances
Message
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01141060
Message ID:
01141185
Views:
36
Do protected constructors; later one you might want to inherit from a subclass.
The Activator.CreateInistance should not work if for protected/private constructors.So you can refactor the CreateInstance method into an generic interface which returns the and implementit as static.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform