Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventng direct creation of sub-class instances
Message
De
28/07/2006 11:20:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01141060
Message ID:
01141144
Vues:
22
>>Test.MyObject mo = (Test.MyObject)Activator.CreateInstance(typeof>>> (Test.MyObject),true);
>
>If the constructor is not accessible it wont work.

But it's. I can create objects with private/internal/protected constructors from other namespaces. I don't know, actually I hoped myself that I wouldn't be able to do it.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform