Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventng direct creation of sub-class instances
Message
 
À
28/07/2006 11:36:04
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01141060
Message ID:
01141185
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform